There are n children in Jzzhu's school. Jzzhu is going to give some candies to them. Let's number all the children from 1 to n.
The i-th child wants to get at least ai candies.
Jzzhu asks childre...
分类:
其他好文 时间:
2014-07-22 22:49:13
阅读次数:
237
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 typedef long long INT; 9 const INT MOD = 1000000007; 10 co....
分类:
其他好文 时间:
2014-07-22 22:48:35
阅读次数:
247
前段时间准备华为机试,正好之前看了一遍《剑指 Offer》,就在九度 Online Judge 上刷了书中的题目,使用的语言为 C++;只有3题没做,其他的都做了。 正如 Linus Torvalds 所言“Talk is cheap, show me the code!",详见托管在 Git...
分类:
其他好文 时间:
2014-07-22 22:48:35
阅读次数:
185
<body> <input type="checkbox" id="ckAll" />check all<br /> <input type="checkbox" name="sub" />1<br /> <input type="checkbox" name="sub"/>2<br /> <input type="checkbox" name="sub"/>3<br /> <input t...
分类:
Web程序 时间:
2014-07-22 09:13:34
阅读次数:
325
2、显示当前连接用户?
SQL>?show?user?
3、查看系统拥有哪些用户?
SQL>?select?*?from?all_users;?
4、新建用户并授权?
SQL>?create?user?a?identified?by?a;(默认建在SYSTEM表空间下)?
SQL>...
分类:
数据库 时间:
2014-07-22 08:28:35
阅读次数:
327
AlertDialog dialog = new AlertDialog.Builder(this).create();
dialog.show();
WindowManager.LayoutParams params = dialog.getWindow().getAttributes();
params.width = 200;
params.height = 200 ;
dialog....
分类:
其他好文 时间:
2014-07-22 08:25:36
阅读次数:
176
题目地址:All in All题目大意: 判断后一个字符串是否包含前一个字符串,顺序不能改变。解题思路: 以后一个字符串为循环,与要判断的字符串中的字符相等就cnt++。最后cnt==len(需要判断的字符串)是输出YES否则NO。代码: 1 #include 2 #include 3 #i...
分类:
其他好文 时间:
2014-07-21 10:34:09
阅读次数:
265
All in AllTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 27556Accepted: 11286DescriptionYou have devised a new encryption technique which en...
分类:
其他好文 时间:
2014-07-21 10:28:39
阅读次数:
138
今天给大家介绍一下最新版本的SSH(struts2.2.1+ hibernate3.6+spring3.0.5)组合。注意本讲解为手工搭建!? 一、为SSH做好准备? struts2-2.2.1-all.zip??????? hibernate-distribution-3.6.0.Final-dist....
分类:
其他好文 时间:
2014-07-21 10:15:04
阅读次数:
368
#### 1. 在Hive中使用show tables;等命令报错:com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Specified key was too long; max key length is 767 bytes **解决办法:** 到mysql中的hive数据库里...
分类:
其他好文 时间:
2014-07-21 10:12:36
阅读次数:
453