Description 小明对数的研究比较热爱,一谈到数,脑子里就涌现出好多数的问题,今天,小明想考考你对素数的认识。 问题是这样的:一个十进制数,如果是素数,而且它的各位数字和也是素数,则称之为“美素数”,如29,本身是素数,而且2+9 = 11也是素数,所以它是美素数。 给定一个区间,你能...
分类:
其他好文 时间:
2015-08-20 09:08:17
阅读次数:
116
SubmitStatusDescriptionSometimes some mathematical results are hard to believe. One of the common problems is the birthday paradox. Suppose you are in...
分类:
其他好文 时间:
2015-08-20 09:06:43
阅读次数:
127
O -计数Time Limit:2000MSMemory Limit:262144KB64bit IO Format:%I64d & %I64uDescriptionGerald got a very curious hexagon for his birthday. The boy found o...
分类:
其他好文 时间:
2015-08-19 23:41:04
阅读次数:
299
Description大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上加难了,就像花钱总是比挣钱容易的道理一样。 话虽这样说,我还是要告诉大家,要想失败到一定程度也是不容易的。比如,我高中的时候,就有一个神奇的女生,在...
分类:
其他好文 时间:
2015-08-19 23:37:23
阅读次数:
180
L -计数,排列Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescription大家常常感慨,要做好一件事情真的不容易,确实,失败比成功容易多了! 做好“一件”事情尚且不易,若想永远成功而总从不失败,那更是难上...
分类:
其他好文 时间:
2015-08-19 22:48:52
阅读次数:
189
F -概率(经典问题)Time Limit:2000MSMemory Limit:32768KB64bit IO Format:%lld & %lluDescriptionSometimes some mathematical results are hard to believe. One of ...
分类:
其他好文 时间:
2015-08-19 16:22:09
阅读次数:
100
E -期望(经典问题)Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%lld & %lluSubmitStatusDescriptionGiven a dice withnsides, you have to find the expect...
分类:
其他好文 时间:
2015-08-19 11:04:45
阅读次数:
211
DescriptionThe Sky is Sprite. The Birds is Fly in the Sky. The Wind is Wonderful. Blew Throw the Trees Trees are Shaking, Leaves are Falling. Lovers W...
分类:
其他好文 时间:
2015-08-19 11:01:53
阅读次数:
138
DescriptionYou are in a cave, a long cave! The cave can be represented by a1 x Ngrid. Each cell of the cave can contain any amount of gold.Initially y...
分类:
其他好文 时间:
2015-08-18 21:07:57
阅读次数:
210
G -数论,最大公约数Time Limit:1000MSMemory Limit:32768KB64bit IO Format:%I64d & %I64uDescriptionThere is a hill with n holes around. The holes are signed from...
分类:
其他好文 时间:
2015-08-18 18:21:03
阅读次数:
114