If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with ...
分类:
其他好文 时间:
2015-12-06 12:57:30
阅读次数:
223
The Japanese language is notorious for its sentence ending particles. Personal preference of such particles can be considered as a reflection of the s...
分类:
其他好文 时间:
2015-12-06 12:53:57
阅读次数:
214
用一个vector 模拟栈每次检查输入,如果大于上次出栈的检查是否满足范围要求。满足的话将中间的数压栈如果小于上次出栈的检查是否为栈尾。满足的话最后一个数出栈Given a stack which can keep M numbers at most. Push N numbers in the o...
分类:
其他好文 时间:
2015-12-06 11:31:34
阅读次数:
174
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can...
分类:
其他好文 时间:
2015-12-06 11:20:07
阅读次数:
183
printf 比cout 执行要快时间限制200 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueExcel can sort records according to any column. Now you are supposed to imi...
分类:
其他好文 时间:
2015-12-06 11:17:24
阅读次数:
152
前两天电脑中毒, 病毒好像把mysql的 log.err 文件给删掉了。然后服务一直启动不了:Could not open error log file errno 2。然后疯狂百度,搜索的结果大多都不是我这种情况,只有很少一部分和我的情况一样。出现和我相同情况的同学:mysql启动错误之Can't...
分类:
数据库 时间:
2015-12-06 01:49:04
阅读次数:
296
---恢复内容开始---这道题真的是非常恶心,看题解看了半天才弄懂,而且题解上说的相当简略。此题大意是询问去掉重复元素的最大子区间和,没有修改操作。没有修改操作,这样就可以离线处理了。这道题有几个难点:1.怎么表示去掉重复元素的区间和? 有一种简便而且高效的方法,用pos[a[i]]表示a[i]上....
分类:
其他好文 时间:
2015-12-05 22:33:01
阅读次数:
219
class10 多态多态简单说就是用不同的类去实现同一个接口的方法,以实现不同类自己的方法eat("FOOD"); // 不需要知道到底是Human还是Animal,直接吃就行了 }else{ echo "Can't eat!\n"; }}$man = new Human();$monke...
分类:
Web程序 时间:
2015-12-05 12:49:54
阅读次数:
205
DescriptionA thief is running away!We can consider the city where he locates as an undirected graph in which nodes stand for crosses and edges stand f...
分类:
其他好文 时间:
2015-12-04 22:50:10
阅读次数:
219
本文来源: http://www.zhangxinxu.com/study/201312/js-parabola-shopping.htmlparabola.js/*! * by zhangxinxu(.com) 2012-12-27 * you can visit http://www.zhang...
分类:
Web程序 时间:
2015-12-04 20:54:33
阅读次数:
266