1:#status .odd 是否奇数行2:#status.count 当前行数3:#status.index 当前行的序号,从0开始『#status.count=#status.index+1』4:#status.first 是否第一行5:#s...
分类:
其他好文 时间:
2014-06-18 23:39:39
阅读次数:
266
#include#include#includeint k,h[110],mark;struct M{ int data; struct M *next;}*head[110];void init(){ int i; for(i = 0; i next = NULL; ...
分类:
其他好文 时间:
2014-06-17 00:58:16
阅读次数:
315
Problem DescriptionTeacher HU and his 40 students were trapped by the brigands. To show their power, the head of the brigands want to select one peopl...
分类:
其他好文 时间:
2014-06-17 00:28:32
阅读次数:
362
1.PyListObject对象 --> 变长可变对象,可看作vector
typedef struct{
PyObject_VAR_HEAD //其中的ob_size表示实际被使用的内存的数量
PyObject **ob_item;//ob_item为指向元素列表的指针,实际上,Python中的list[0]就是ob_item[0]
int allocated;//当前列表中可容纳的元素的总数
}
PyList_Type 对象 --> PyListObject的类型对象
ty...
分类:
编程语言 时间:
2014-06-16 22:48:55
阅读次数:
300
继续校赛前的建图任务,当时只写了DFS遍历,今天把BFS也写了一下。
#include
#include
#include
#include
#include
const int maxe = 10001;
using namespace std;
struct node{
int to,w;
node *next;
}*head[maxe];//he...
分类:
其他好文 时间:
2014-06-16 22:25:20
阅读次数:
286
题目
Implement strStr().
Returns a pointer to the first occurrence of needle in haystack, or null if needle is not part of haystack.
方法
只需要遍历一遍即可。
public String strStr(String...
分类:
其他好文 时间:
2014-06-16 19:07:08
阅读次数:
188
linux查看硬件和系统信息的相关命令简介<转>[root@yufei~]#uname-a#查看内核/操作系统/CPU信息的linux系统信息命令[root@yufei~]#head-n1/etc/issue#查看操作系统版本,是数字1不是字母L[root@yufei~]#cat/proc/cpuinfo#查看CPU信息的linux系统信息命令[root@yufei~]#hos..
分类:
系统相关 时间:
2014-06-16 15:47:51
阅读次数:
339
http://docs.codehaus.org/display/GROOVY/Install+Groovy-Eclipse+Pluginhttp://docs.codehaus.org/display/GROOVY/Create+Your+First+Groovy+ProjectTUTORIAL ...
分类:
系统相关 时间:
2014-06-15 14:28:26
阅读次数:
462
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2014-06-15 14:12:44
阅读次数:
238
first move advantage_百度搜索先动优势
分类:
其他好文 时间:
2014-06-15 12:56:40
阅读次数:
183