上一页 1 2 3 4 5 6 7 8 ··· 41 下一页
题目链接:http://lightoj.com/volume_showproblem.php?problem=1236 题意:给你一个数n,求有多少对(i, j)满足 LCM(i, j) = n, (i<=j), n <= 1e14; 之前做的那道LightOj 1215 中有说过:LCM(x, y Read More
posted @ 2016-10-31 20:49 西瓜不懂柠檬的酸 Views(174) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1220 题意:已知 x=bp 中的 x 求最大的 p,其中 x b p 都为整数 x = (p1a1*p2a2*p3a3*...*pkak), pi为素数;则结果就是gcd(a1, a2, Read More
posted @ 2016-10-31 16:48 西瓜不懂柠檬的酸 Views(167) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1215 题意:已知三个数a b c 的最小公倍数是 L ,现在告诉你 a b L 求最小的 c ; 其实就是告诉你(最小公倍数LCM)LCM(x, y) = L 已知 x 和 L 求 最小 Read More
posted @ 2016-10-31 15:19 西瓜不懂柠檬的酸 Views(473) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1213 题意:告诉你这段代码,然后优化,求res; n (1 ≤ n ≤ 1000), K (1 ≤ K < 231), MOD (1 ≤ MOD ≤ 35000) 我们很容易就知道最内成 Read More
posted @ 2016-10-31 10:41 西瓜不懂柠檬的酸 Views(587) Comments(0) Diggs(0)
题目链接:http://lightoj.com/volume_showproblem.php?problem=1197 题意:给你两个数 a b,求区间 [a, b]内素数的个数, a and b (1 ≤ a ≤ b < 231, b - a ≤ 100000). 由于a和b较大,我们可以筛选所有 Read More
posted @ 2016-10-30 16:28 西瓜不懂柠檬的酸 Views(259) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5943 题意:给你两个数n, s 然后让你判断是否存在(s+1, s+2, s+3, ... , s+n )的任意排列方式使得每个数都满足当前数num,与num所在位置 pos 形成num%pos=0; Read More
posted @ 2016-10-29 18:30 西瓜不懂柠檬的酸 Views(196) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5934 题意:有n个炸弹,每个炸弹放在(x, y)这个位置,它能炸的范围是以 r 为半径的圆,手动引爆这颗炸弹所需代价是c,当一个炸弹爆炸时, 在它爆炸范围内的所有炸弹都将被它引爆,让求把所有的炸弹都引爆 Read More
posted @ 2016-10-29 17:43 西瓜不懂柠檬的酸 Views(289) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5938 题意:给一个不超过20位并且大于2位的数字字符串(只包含1-9)然后找到适当的位置依次放入"+-*/"四个符号,然后求能构成的最大的数; 可以看成是 A+B-C*D/E这种形式,要想让结果最大,那 Read More
posted @ 2016-10-29 16:40 西瓜不懂柠檬的酸 Views(157) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5935 题意:有一辆车在马路上行驶,速度不变或增加,然后警察在某整数点时刻记录下了这辆车所经过的位置,共有n个记录,最后求这辆车过最后一个位置所需的最少时间是多少;已知起始时间和位置是0; 位置可能是浮点 Read More
posted @ 2016-10-29 16:02 西瓜不懂柠檬的酸 Views(163) Comments(0) Diggs(0)
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5933 题意:给你一个数组含有n个数,然后把这些数分为k份,每份都相等;有两个操作:合并相邻的两个数;把一个数分为两个数; 求最少的操作次数; #include<stdio.h> #include<str Read More
posted @ 2016-10-29 15:18 西瓜不懂柠檬的酸 Views(143) Comments(0) Diggs(0)
上一页 1 2 3 4 5 6 7 8 ··· 41 下一页
levels of contents