Leetcode59 Spiral Matrix II Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For example, Given n = 3, ...
分类:
其他好文 时间:
2018-02-05 18:46:53
阅读次数:
120
P1825 [USACO11OPEN]玉米田迷宫Corn Maze P1825 [USACO11OPEN]玉米田迷宫Corn Maze P1825 [USACO11OPEN]玉米田迷宫Corn Maze 题目描述 This past fall, Farmer John took the cows t ...
分类:
其他好文 时间:
2018-02-04 18:10:53
阅读次数:
194
#define _CRT_SECURE_NO_WARNINGS #include #include #include #include #include #include #include #include #include #include #include #include #include #... ...
分类:
其他好文 时间:
2018-01-29 00:22:46
阅读次数:
179
特点 内存+磁盘的持久化保存 具有非常丰富的数据类型,尤其擅长数组类数据的高速度处理 数据快照 自带的主从复制 丰富的数据类型 字符串 链表 集合 有序集合 散列表 适用场景 时间线应用 得益于链表的高速实现 对数组形式数据频繁添加和删除 不限于常规数组,包括链表,有向集合 ... ...
分类:
其他好文 时间:
2018-01-26 23:03:23
阅读次数:
324
c++代码: #include<bits/stdc++.h>using namespace std;#define fo(i,a,b) for(int i=a;i<=b;i++)bool visit[11];int a[10];void dfs(int index){ ios::sync_with_ ...
分类:
编程语言 时间:
2018-01-23 15:53:05
阅读次数:
203
http://codeforces.com/gym/100735 D题 直接暴力枚举 感觉这道题数据有点问题 为什么要先排下序才能过?不懂。。 #include <stdio.h> #include <math.h> #include <string.h> #include <stdlib.h> # ...
分类:
其他好文 时间:
2018-01-22 21:15:02
阅读次数:
162
Visual Studio 2015 说明 For the latest documentation on C#, visit the C# Guide on docs.microsoft.com. readonly 关键字是可以在字段上使用的修饰符。 当字段声明包括 readonly 修饰符时,该 ...
For the latest documentation on C#, visit the C# Guide on docs.microsoft.com. 当对一个类应用 sealed 修饰符时,此修饰符会阻止其他类从该类继承。 在下面的示例中,类 B 从类 A 继承,但是任何类都不能从类 B 继承 ...
定义:使用一个访问者类,它改变了元素类的执行算法。通过这种方式,元素的执行算法可以随着访问者改变而改变。通过访问者来访问自身的一些方法。accept方法的参数为访问者,访问者方法visit通过参数元素访问元素本身。 角色:抽象访问者:抽象类或者接口,声明访问者可以访问哪些元素,具体到程序中就是vis ...
分类:
其他好文 时间:
2018-01-20 16:59:30
阅读次数:
125
如何在 Mac 上通过 Boot Camp 安装 Windows? The following contents are chosen from the apple website, thanks for your visit~~ Good time! Boot Camp 可帮助您在 Mac 上安装 ...