A + B Problem (4)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:2496 测试通过:1249描述Calculate the sum of some integers.输入The input will consist...
分类:
其他好文 时间:
2014-06-18 13:58:31
阅读次数:
187
HomeProblems1086A + B Problem (3)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:2317 测试通过:1452描述Calculate a + b.输入The input will consist of...
分类:
其他好文 时间:
2014-06-18 13:51:59
阅读次数:
136
2301: [HAOI2011]Problem bTime Limit: 50 SecMemory Limit: 256 MBSubmit: 1007Solved: 415[Submit][Status]Description对于给出的n个询问,每次求有多少个数对(x,y),满足a≤x≤b,c≤y≤...
分类:
其他好文 时间:
2014-06-18 13:44:16
阅读次数:
272
A + B Problem (2)时间限制(普通/Java):1000MS/3000MS 运行内存限制:65536KByte总提交:2600 测试通过:1372描述Calculate a + b.输入The input will consist of a series of pai...
分类:
其他好文 时间:
2014-06-18 13:34:20
阅读次数:
223
http://poj.org/problem?id=3128
大致题意:输入一串含26个大写字母的字符串,可以把它看做一个置换,判断这个置换是否是某个置换的平方。
思路:详解可参考置换群快速幂运算
研究与探讨。
可以先正着考虑一个置换的平方出现什么情况。对于置换中的循环,若其长度为偶数,平方以后一定分成了两个长度相等的循环,若长度是奇数,平方以后仍是一个循环,长度不变。因...
分类:
其他好文 时间:
2014-06-17 23:13:25
阅读次数:
291
Kth number
Time Limit: 15000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4585 Accepted Submission(s): 1461
Problem Description
Give you a sequenc...
分类:
其他好文 时间:
2014-06-17 23:04:29
阅读次数:
246
Problem Description
FatMouse prepared M pounds of cat food, ready to trade with the cats guarding the warehouse containing his favorite food, JavaBean.
The warehouse has N rooms. The i-th room con...
分类:
其他好文 时间:
2014-06-17 22:47:38
阅读次数:
300
地址:http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1203
做法:
假如n等于10^12。
那么n%1...n%10^6暴力解。复杂度o(10^6)
对于任意的n%x=y;
得: x*t+y=n;(t>=1&&t
对于任意的t,
第一个x*t+y=n的x1为n/(t+1)+1;
最后一个x*t+y=n的x...
分类:
其他好文 时间:
2014-06-17 22:07:18
阅读次数:
249
hdu2059 龟兔赛跑 动态规划题目描述:Problem Description据说在很久很久以前,可怜的兔子经历了人生中最大的打击——赛跑输给乌龟后,心中郁闷,发誓要报仇雪恨,于是躲进了杭州下沙某农业园卧薪尝胆潜心修炼,终于练成了绝技,能够毫不休息得以恒定的速度(VR m/s)一直跑。兔子一直想...
分类:
其他好文 时间:
2014-06-17 19:45:35
阅读次数:
198
I finally figured this problem out. The device I am using is a Samsung Galaxy S4 and the actual problem (thanks Wibble for guidance in your answer, bu...
分类:
其他好文 时间:
2014-06-17 15:21:50
阅读次数:
240