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
错误提示:NoReverseMatch at /admin/ Reverse for 'logout' with arguments '()' and keyword arguments '{}' not found.解决方式:将urls.py中(r'^admin/$', include(admin...
分类:
其他好文 时间:
2014-07-22 00:12:33
阅读次数:
549
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
java很给力逆序用了Colletcions.reverse();/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; ...
分类:
其他好文 时间:
2014-07-22 00:04:35
阅读次数:
154
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