Painter's ProblemTime Limit:1000MSMemory Limit:10000KTotal Submissions:4420Accepted:2143DescriptionThere is a square wall which is made of n*n small s...
分类:
其他好文 时间:
2014-07-16 22:57:42
阅读次数:
209
一、选取DOM元素jQuery的核心是通过各种选择器,选中DOM元素,可以用querySelectorAll方法模拟这个功能。 var $ = document.querySelectorAll.bind(document);这里需要注意的是,querySelectorAll方法返回的是NodeL....
分类:
Web程序 时间:
2014-07-16 20:59:21
阅读次数:
166
PacketsTime Limit:1000MSMemory Limit:10000KTotal Submissions:43189Accepted:14550DescriptionA factory produces products packed in square packets of the...
分类:
其他好文 时间:
2014-07-16 20:09:21
阅读次数:
315
一个双人的游戏 Pascal源码附上只要俩人不脑残,一下午玩不完。。。又是控制台游戏中的一朵奇葩。Free Pascal 射击游戏Program shooting_game;uses crt;const cz:array[1..4,1..2] of -1..1=((0,1),(1,0),(0,-1)...
分类:
其他好文 时间:
2014-07-14 10:19:56
阅读次数:
322
Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d
& %I64u
Submit Status
Description
Adapted from Wikipedia, the free encyclopedia
The humidex is a measurement used...
分类:
其他好文 时间:
2014-07-13 18:00:41
阅读次数:
340
Given an integer n, generate a square matrix filled with elements from 1 to n2 in
spiral order.
For example,
Given n = 3,
You should return the following matrix:
[
[ 1, 2, 3 ],
[ 8, 9, 4 ],
[...
分类:
其他好文 时间:
2014-07-13 16:37:16
阅读次数:
199
/*
B - 广搜/深搜 基础
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
There is a rectangular room, covered with square tiles. Each tile is colored ei...
分类:
其他好文 时间:
2014-07-13 14:08:05
阅读次数:
237
Red and BlackProblem DescriptionThere is a rectangular room, covered with square tiles. Each tile is colored either red or black. A man is standing on...
分类:
其他好文 时间:
2014-07-13 13:10:07
阅读次数:
220
以前只是知道这个东西,可以解决一些问题,最近自己做一个字符串操作的东东,看了下redis的源码,做个小的总结。struct cl_str_s{ int free; int len; char buf[];}; 代码的意思是,我们定义了一个结构体,它有这么三个属性,作用很明显不详细...
分类:
其他好文 时间:
2014-07-13 09:25:28
阅读次数:
158
在自然语言学习过程中,每个人一定都学过语法,例如句子可以用主语、谓语、宾语来表示。在自然语言的处理过程中,有许多应用场景都需要考虑句子的语法,因此研究语法解析变得非常重要。语法解析有两个主要的问题,其一是句子语法在计算机中的表达与存储方法,以及语料数据集;其二是语法解析的算法。这也是本章将要讨论的内容。...
分类:
其他好文 时间:
2014-07-12 18:49:36
阅读次数:
243