
大数
键盘上的精灵
这个作者很懒,什么都没留下…
展开
-
nyoj 541 最强DE 战斗力(大数问题)
描述春秋战国时期,赵国地大物博,资源非常丰富,人民安居乐业。但许多国家对它虎视眈眈,准备联合起来对赵国发起一场战争。显然,面对多个国家的部队去作战,赵国的兵力明显处于劣势。战斗力是决定战争成败的关键因素,一般来说,一支部队的战斗力与部队的兵力成正比。但当把一支部队分成若干个作战队伍时,这个部队的战斗力就会大大的增强。一支部队的战斗力是可以通过以下两个规则计算出来的:1.原创 2016-05-10 19:20:33 · 881 阅读 · 0 评论 -
HDU 1060 Leftmost Digit(大数问题)
DescriptionGiven a positive integer N, you should output the leftmost digit of N^N. InputThe input contains several test cases. The first line of the input is a single integer T which is the n原创 2016-05-10 21:09:32 · 364 阅读 · 0 评论 -
HDU 1042 N!
DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, output N! in one line. Sample Input原创 2016-04-22 16:39:27 · 305 阅读 · 0 评论