上一页 1 2 3 4 5 6 ··· 15 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=1573X问题Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4... 阅读全文
posted @ 2015-11-13 16:54 午夜阳光~ 阅读(405) 评论(0) 推荐(0) 编辑
摘要: “中国剩余定理”是公元5-6世纪、我国南北朝时期的一部著名算术著作《孙子算经》中的一个“物不知数”的解法问题:今有物不知其数,三三数之剩二,五五数之剩三,七七数之剩二。问物几何?答曰:二十三。1.除数两两互质的情况根据上面我们可以得到一组式子:X ≡ 2(mod 3)X ≡ 3(mod 5)X ≡ ... 阅读全文
posted @ 2015-11-12 16:25 午夜阳光~ 阅读(692) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1006题目大意:人生来就有三个生理周期,分别为体力、感情和智力周期,它们的周期长度为23天、28天和33天。每一个周期中有一天是高峰。在高峰这天,人会在相应的方面表现出色。例如,智力周期的高峰,人会思维敏捷,精力容易高度集中。因为三个周期的周长不... 阅读全文
posted @ 2015-11-12 15:36 午夜阳光~ 阅读(640) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5124linesProblem Description:John has several lines. The lines are covered on the X axis. Let A is a point w... 阅读全文
posted @ 2015-11-10 16:04 午夜阳光~ 阅读(217) 评论(0) 推荐(0) 编辑
摘要: Given the value of N, you will have to find the value of G. The definition of G is given below:Here GCD(i, j) means the greatest common divisor of int... 阅读全文
posted @ 2015-11-10 14:24 午夜阳光~ 阅读(204) 评论(0) 推荐(0) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1138Trailing Zeroes (III)Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatu... 阅读全文
posted @ 2015-11-09 15:42 午夜阳光~ 阅读(495) 评论(0) 推荐(1) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1197题目大意:就是给你一个区间[a,b]让你求这个区间素数的个数但a、b的值太大没法直接进行素数筛选(没法开那么大的数组),我们可以将a当做0,将b当做b-a这样求[a,b]之间就变成了求[0, ... 阅读全文
posted @ 2015-11-06 19:01 午夜阳光~ 阅读(548) 评论(0) 推荐(0) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1213Fantasy of a SummationTime Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStat... 阅读全文
posted @ 2015-11-06 15:06 午夜阳光~ 阅读(368) 评论(0) 推荐(0) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1220Mysterious BacteriaTime Limit:500MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusPr... 阅读全文
posted @ 2015-11-05 17:57 午夜阳光~ 阅读(1451) 评论(2) 推荐(1) 编辑
摘要: http://lightoj.com/volume_showproblem.php?problem=1234Harmonic NumberTime Limit:3000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusPract... 阅读全文
posted @ 2015-11-05 14:36 午夜阳光~ 阅读(480) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 15 下一页