G. Count the ColorsTime Limit: 2000msMemory Limit: 65536KB64-bit integer IO format:%lld Java class name:MainPainting some colored segments on a line, ...
分类:
其他好文 时间:
2014-07-22 00:23:34
阅读次数:
220
DescriptionThe Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 < a < b <= n and gcd(a,b) = 1 arr...
分类:
其他好文 时间:
2014-07-22 00:20:35
阅读次数:
283
泛型,类型安全机制。好处:1.将运行时期出现问题ClassCastException转移到了编译时期,方便解决问题,减少运行时期的问题,有利于程序的健壮性。2.避免了强制转换的麻烦泛型格式:ArrayList al = new ArrayList();若增加Integer类型的数据,在编译的时期就会...
分类:
编程语言 时间:
2014-07-22 00:16:35
阅读次数:
193
dbms_xplan.display_cursor定义:function display_cursor(sql_id varchar2 default null, cursor_child_no integer default 0, formatvarchar2 default 'TYPICAL')...
分类:
数据库 时间:
2014-07-22 00:09:34
阅读次数:
376
D. NecklaceTime Limit: 5000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:MainMery has a beautiful necklace. The necklace is ma...
分类:
其他好文 时间:
2014-07-22 00:08:37
阅读次数:
236
A. 最短路Time Limit: 1000msMemory Limit: 32768KB64-bit integer IO format:%I64d Java class name:Main在每年的校赛里,所有进入决赛的同学都会获得一件很漂亮的t-shirt。但是每当我们的工作人员把上百件的衣服从...
分类:
其他好文 时间:
2014-07-22 00:06:34
阅读次数:
194
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.以下为补充知识,百度到的罗马数字写法:个位数举例I, 1 】II, 2】 III, 3】...
分类:
其他好文 时间:
2014-07-22 00:04:34
阅读次数:
190
A - The SuspectsTime Limit:1000 MSMemory Limit:20000 KB64-bit integer IO format:%I64d , %I64uJava class name:MainDescriptionSevere acute respiratory s...
分类:
其他好文 时间:
2014-07-21 23:29:40
阅读次数:
268
Description
The multiplication puzzle is played with a row of cards, each containing a single positive integer. During the move player takes one card out of the row and scores the number of points ...
分类:
其他好文 时间:
2014-07-21 22:11:18
阅读次数:
289
Sumdiv
Description
Consider two natural numbers A and B. Let S be the sum of all natural divisors of A^B. Determine S modulo 9901 (the rest of the division of S by 9901).
Input
The only line...
分类:
其他好文 时间:
2014-07-21 16:27:12
阅读次数:
187