
ACM水题
xiaofang3a
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
灌水VS抽水
Problem DescriptionThere is something crazy! There is a pool and many of pumps to fill up the empty pool. We know that the capacity of each pump. And at last, we want you to tell us whether we can f原创 2014-07-16 15:24:58 · 1180 阅读 · 0 评论 -
骰神秘笈
Problem DescriptionRC非常喜欢一个名叫"Lie Dice"的游戏,并立志要成为当中的牛人。后来他听说有一位成为"骰神"的世外高手,就来到了骰神的住所,想拜骰神为师。开始时骰神将他拒绝了,但在RC的死缠烂打之下,骰神终于心软,不过提出要经过一场入门考验。骰神的考验是这样的:在骰神的园子里有一个N*M的矩形地,里面是N行M列的小方格。对每一行按从南到北的顺序由1-N编号,对原创 2014-07-16 20:35:43 · 609 阅读 · 0 评论 -
求余数
描述现在给你一个自然数n,它的位数小于等于一百万,现在你要做的就是求出这个数除10003之后的余数输入第一行有一个整数m(1随后m行每行有一个自然数n。输出输出n整除10003之后的余数,每次输出占一行。样例输入345465456541样例输出456948原创 2014-07-23 20:45:54 · 383 阅读 · 0 评论 -
无聊的小明
描述这天小明十分无聊,没有事做,但不甘于无聊的小明聪明的想到一个解决无聊的办法,因为他突然对数的正整数次幂产生了兴趣。 众所周知,2的正整数次幂最后一位数总是不断的在重复2,4,8,6,2,4,8,6……我们说2的正整数次幂最后一位的循环长度是4(实际上4的倍数都可以说是循环长度,但我们只考虑最小的循环长度)。类似的,其余的数字的正整数次幂最后一位数也有类似的循环现象。 这时小明的原创 2014-07-14 11:57:33 · 479 阅读 · 0 评论 -
循环小数
Problem DescriptionGiven a floating point number X, the form is X=0.a1a2...an(b1b2...bm)(1Please change the floating point number X into a fraction A/B(gcd(A,B)=1).InputInput may contain sever原创 2014-08-20 15:57:51 · 491 阅读 · 0 评论 -
多连块拼图
多连块是指由多个等大正方形边与边连接而成的平面连通图形。-- 维基百科给一个大多连块和小多连块,你的任务是判断大多连块是否可以由两个这样的小多连块拼成。小多连块只能平移,不能旋转或者翻转。两个小多连块不得重叠。左下图是一个合法的拼法,但右边两幅图都非法。中间那幅图的问题在于其中一个小多连块旋转了,而右图更离谱:拼在一起的那两个多连块根本就不是那个给定的小多连块(给定的小多连块画原创 2014-08-14 16:24:01 · 2061 阅读 · 0 评论 -
Problem 2144 Shooting Game
Problem DescriptionFat brother and Maze are playing a kind of special (hentai) game in the playground. (Maybe it’s the OOXX game which decrypted in the last problem, who knows.) But as they don’t原创 2014-08-28 17:26:24 · 456 阅读 · 0 评论 -
Can you find it?
Problem DescriptionGive you three sequences of numbers A, B, C, then we give you a number X. Now you need to calculate if you can find the three numbers Ai, Bj, Ck, which satisfy the formula Ai+Bj+C原创 2014-09-12 12:39:17 · 376 阅读 · 0 评论 -
Largest prime factor(素数表的巧用)
Problem DescriptionEverybody knows any number can be combined by the prime number.Now, your task is telling me what position of the largest prime factor.The position of prime 2 is 1, prime 3 is原创 2014-09-12 14:59:21 · 398 阅读 · 0 评论