There are n cities and n?-?1 roads in the Seven Kingdoms, each road connects two cities and we can reach any city from any other by the roads. Theon a ...
分类:
其他好文 时间:
2017-08-13 12:21:13
阅读次数:
200
Bran and his older sister Arya are from the same house. Bran like candies so much, so Arya is going to give him some Candies. At first, Arya and Bran ...
分类:
其他好文 时间:
2017-08-13 12:20:47
阅读次数:
137
贪婪匹配 在贪婪匹配后加? 即为非贪婪匹配 例子: String str = " [程序设计] 例5.1 输入10个整数,按照从大到小顺序重新排序后输出。main(){ int a[10] ,i,j,t,n= 10;}"; str = str.replaceFirst("^( |\\s)* ...
分类:
其他好文 时间:
2017-08-13 11:08:39
阅读次数:
221
Oracle Study之-AIX6.1构建Oracle 10gR2 RAC(3) 一、配置共享存储 [oracle@aix203 ~]$lsdev -c disk hdisk0 Available 1S-08-00-8,0 Other SCSI Disk Drive hdisk1 Availabl ...
分类:
数据库 时间:
2017-08-12 22:38:19
阅读次数:
254
Chinese remainder theorem again Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 3174 Accepted Su ...
分类:
其他好文 时间:
2017-08-12 22:31:36
阅读次数:
174
小C的倍数问题 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 277 Accepted Submission(s): 137 Problem D ...
分类:
其他好文 时间:
2017-08-12 20:25:15
阅读次数:
116
描述 南将军手下有N个士兵,分别编号1到N,这些士兵的杀敌数都是已知的。 小工是南将军手下的军师,南将军经常想知道第m号到第n号士兵的总杀敌数,请你帮助小工来回答南将军吧。 南将军的某次询问之后士兵i可能又杀敌q人,之后南将军再询问的时候,需要考虑到新增的杀敌数。 ...
分类:
其他好文 时间:
2017-08-12 17:06:07
阅读次数:
143
描述 南将军手下有N个士兵,分别编号1到N,这些士兵的杀敌数都是已知的。 小工是南将军手下的军师,南将军现在想知道第m号到第n号士兵的总杀敌数,请你帮助小工来回答南将军吧。 注意,南将军可能会问很多次问题。 ...
分类:
其他好文 时间:
2017-08-12 15:24:04
阅读次数:
114
Sean owns a company and he is the BOSS.The other Staff has one Superior.every staff has a loyalty and ability.Some times Sean will fire one staff.Then ...
分类:
其他好文 时间:
2017-08-12 14:00:21
阅读次数:
173
Like the other subarray sum problems Lintcode: Subarray Sum closest, 560. Subarray Sum Equals K, 523. Continuous Subarray Sum Use a HashMap to keep tr ...
分类:
其他好文 时间:
2017-08-12 13:58:43
阅读次数:
150