摘要: Average ScoreTime Limit:2 Seconds Memory Limit:65536 KBBob is a freshman in Marjar University. He is clever and diligent. However, he is not good at m... 阅读全文
posted @ 2015-12-23 23:44 zhaop 阅读(292) 评论(0) 推荐(0) 编辑
摘要: A -ATime Limit:0MSMemory Limit:0KB64bit IO Format:%lld & %lluSubmitStatusPracticeSCU 4424Description Time Limit: 1000msDescription Given N distinct el... 阅读全文
posted @ 2015-12-23 23:05 zhaop 阅读(574) 评论(0) 推荐(0) 编辑
摘要: Blocks Time Limit: 5000MS Memory Limit: 65536K Total Submissions: 4744 Accepted: 1930 Description Some of you may have played a game called 'Blocks'. 阅读全文
posted @ 2015-12-22 19:24 zhaop 阅读(794) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1037题意:输入木棒的个数n,其中每个木棒长度等于对应的编号,把木棒按照波浪形排序,然后输出第c个;分析:总数为i跟木棒中第k短的木棒 就等于总数为i-1中比这一根短的方案数 + 和比这一根长的方案数;最后用一个三维数组表示成c[i][k][up... 阅读全文
posted @ 2015-12-22 11:42 zhaop 阅读(193) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1995题意:求(A1^B1 + A2^B2 + .....Ah^Bh)%M直接快速幂,以前对快速幂了解不深刻,今天重新学了一遍so easy以a^b为例:如果b是偶数那么一定可以写成 (a^2 * a^2 ....)一共是b/2个,那么其实就可以... 阅读全文
posted @ 2015-12-21 17:00 zhaop 阅读(788) 评论(0) 推荐(0) 编辑
摘要: 滑雪Time Limit: 1000MSMemory Limit: 65536KTotal Submissions: 86411Accepted: 32318DescriptionMichael喜欢滑雪百这并不奇怪, 因为滑雪的确很刺激。可是为了获得速度,滑的区域必须向下倾斜,而且当你滑到坡底,你不... 阅读全文
posted @ 2015-12-19 21:09 zhaop 阅读(176) 评论(0) 推荐(0) 编辑
摘要: http://acm.tju.edu.cn/toj/showp3540.html3540.ConsumerTime Limit:2.0 Seconds Memory Limit:65536KTotal Runs:136 Accepted Runs:67FJ is going to do some s... 阅读全文
posted @ 2015-12-18 19:39 zhaop 阅读(218) 评论(0) 推荐(0) 编辑
摘要: A Mini LocomotiveTime Limit: 1000MSMemory Limit: 30000KTotal Submissions: 2485Accepted: 1388DescriptionA train has a locomotive that pulls the train w... 阅读全文
posted @ 2015-12-17 20:28 zhaop 阅读(436) 评论(0) 推荐(0) 编辑
摘要: DivisibilityTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 11151Accepted: 3993DescriptionConsider an arbitrary sequence of integers. One can... 阅读全文
posted @ 2015-12-17 19:22 zhaop 阅读(193) 评论(0) 推荐(0) 编辑
摘要: I love sneakers! Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4765 Accepted Submission(s): 195 阅读全文
posted @ 2015-12-16 21:18 zhaop 阅读(242) 评论(0) 推荐(0) 编辑