Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant dig...
分类:
其他好文 时间:
2014-07-18 16:17:10
阅读次数:
249
ant是绿色免安装的,通常习惯放在C盘根目录下,如:C:\apache-ant-1.9.4 那么环境就应该配置为: ANT_HOME=C:\apache-ant-1.9.4; Path=C:\apache-ant-1.9.4\bin; 完成之后,用ant -version来测试是否安装成功! 成功打...
分类:
其他好文 时间:
2014-07-18 14:37:55
阅读次数:
158
写这个就是为了手写一份好用的求割点模板:
吐槽下,题目中的 Each of the next at most N lines contains the number of a place followed by the numbers of some places to which there is a direct line from this place. 这个at most是不可信的,应...
分类:
其他好文 时间:
2014-07-18 11:29:34
阅读次数:
232
function is_number(field,div_id)//div_id是显示错误的div的ID{ var patt=new RegExp("^[0-9]{1,2}$");//建立正则表达式对象patt with(field){ if(patt.test(value)==false){//....
分类:
Web程序 时间:
2014-07-18 10:30:53
阅读次数:
224
Double HappinessOn the math lesson a teacher asked each pupil to come up with his own lucky numbers. As a fan of number theory Peter chose prime numbe...
分类:
移动开发 时间:
2014-07-18 00:12:12
阅读次数:
616
使用ROW_NUMBER来分页几乎是家喻户晓的东东了,而且这东西简单易用,简直就是程序员居家必备之杀器,然而ROW_NUMBER也不是一招吃遍天下鲜的无敌BUG般存在,最近就遇到几个小问题,拿出来供大家娱乐下。---==========================================...
分类:
其他好文 时间:
2014-07-18 00:02:19
阅读次数:
332
与java不一样,因为js是弱语言0<15 返回布尔类型 true,表达式变成true<30,js 有默认类型转换机制,表达式true<30 中的true会 转换成number类型 1,从而变成1< 30,就得到true;总结:一般不要适应,if(0<15<30)这种,一般用&& 或者 || ;js...
分类:
Web程序 时间:
2014-07-17 22:35:03
阅读次数:
266
Summation of Four Primes
Input: standard input
Output: standard output
Time Limit: 4 seconds
Euler proved in one of his classic theorems that prime numbers are infinite in number. But can every nu...
分类:
其他好文 时间:
2014-07-17 21:05:16
阅读次数:
299
??
Description
Petya has k matches, placed in n matchboxes lying in a line from left to right.
We know that k is divisible by n. Petya wants all boxes to have the same number of matches in...
分类:
其他好文 时间:
2014-07-17 20:35:53
阅读次数:
249
rpm命令可以实现安装、查询、卸载、校验、升级、数据库重建、验证数据包等功能。它的数据库在/var/lib/rpm下。rpm包的组成部分为主包:bind-9.7.1-1.el5.i586.rpm子包:bind-libs-9.7.1-el5.i586.rpmrpm包的格式有两种:name-version-release.arch.rpm和bind-major.minor.relea..
分类:
其他好文 时间:
2014-07-17 20:05:39
阅读次数:
246