随笔分类 - 

摘要:MedianTime Limit:1000MSMemory Limit:65536KTotal Submissions:3882Accepted:1139DescriptionGivenNnumbers,X1,X2, ... ,XN, let us calculate the difference ... 阅读全文
posted @ 2014-10-08 00:17 一个大叔 阅读(1349) 评论(1) 推荐(0)
摘要:GCD XORGiven an integer N, nd how many pairs (A; B) are there such that: gcd(A; B) = A xor B where1  B  A  N.Here gcd(A; B) means the greatest com... 阅读全文
posted @ 2014-10-05 22:42 一个大叔 阅读(166) 评论(0) 推荐(0)
摘要:D. Increase Sequencetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputPeter has a sequence of integ... 阅读全文
posted @ 2014-09-20 10:57 一个大叔 阅读(548) 评论(0) 推荐(1)
摘要:Though Rujia Liu usually sets hard problems for contests (for example, regional contests like Xi'an 2006, Beijing 2007 and Wuhan 2009, or UVa OJ conte... 阅读全文
posted @ 2014-07-10 15:02 一个大叔 阅读(163) 评论(0) 推荐(0)
摘要:As we all know,Coach Gaois a talented chef, because he is able to cookMdishes in the same time. Tonight he is going to have a hearty dinner with his g... 阅读全文
posted @ 2014-05-18 14:23 一个大叔 阅读(307) 评论(0) 推荐(0)