ACM----【数论】
文章平均质量分 67
iviko
这个作者很懒,什么都没留下…
展开
-
快速幂
快速幂Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusDescriptionGiven a positive integer N, you should output the most right digit of N^N. Input原创 2014-07-28 14:16:39 · 739 阅读 · 0 评论 -
POJ 2769 Reduced ID Numbers
思路: 枚举Reduced ID NumbersTime Limit: 2000MS Memory Limit: 65536KTotal Submissions: 8847 Accepted: 3552DescriptionT. Chur teaches various groups of students at university U. Every U-student原创 2014-08-21 14:44:01 · 654 阅读 · 0 评论 -
LightOj 1179 Josephus Problem
1179 - Josephus ProblemPDF (English) Statistics ForumTime Limit: 2 second(s) Memory Limit: 32 MBThe historian Flavius Josephus relates how, in the Romano-Jewish conflict of 67 A.D., the Romans t原创 2014-08-21 13:33:37 · 834 阅读 · 0 评论 -
LightOj 1148 Basic Math
1148 - Mad CountingPDF (English) Statistics ForumTime Limit: 0.5 second(s) Memory Limit: 32 MBMob was hijacked by the mayor of the Town "TruthTown". Mayor wants Mob to count the total population原创 2014-08-21 10:24:05 · 992 阅读 · 0 评论 -
LightOj 1078 Basic Math
思路: 设输入的两个数分别为n和a,每一次所得到的数为update: 开始update=a,依次update分别为update*10+a,这样数据会超出范围,则update每次为update=(update*10+a)%n即可, 如果update=0,跳出循环; 只需证明:(update*10+a)%n=(update%n*10+a)%n即可;原创 2014-08-21 00:35:21 · 722 阅读 · 0 评论 -
Light Oj 1116
Ekka DokkaTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusDescriptionEkka and his friend Dokka decided to buy a cake. They both love cakes and that's原创 2014-08-07 01:12:02 · 571 阅读 · 0 评论 -
分拆素数和 埃氏筛法
分拆素数和Time Limit:1000MS Memory Limit:32768KB 64bit IO Format:%I64d & %I64uSubmitStatusPracticeHDU 2098Description把一个偶数拆成两个不同素数的和,有几种拆法呢?Input输入包含一些正的偶数,其值不会超过10000,个数不原创 2014-07-31 23:37:28 · 786 阅读 · 0 评论 -
Light Oj 1214 大数整除
Large DivisionTime Limit:1000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusPracticeLightOJ 1214DescriptionGiven two integers, a and b, you should check whe原创 2014-08-07 16:14:39 · 964 阅读 · 0 评论 -
阶乘位数转化
Digits of FactorialTime Limit:2000MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusDescriptionFactorial of an integer is defined by the following functionf(0) = 1原创 2014-08-05 21:56:22 · 688 阅读 · 0 评论 -
Light Oj 1008
Fibsieve`s Fantabulous BirthdayTime Limit:500MS Memory Limit:32768KB 64bit IO Format:%lld & %lluSubmitStatusDescriptionFibsieve had a fantabulous (yes, it's an actual word) birthda原创 2014-08-05 19:20:12 · 558 阅读 · 0 评论 -
Java常用类库--大数处理类--BigInteger
Java常用类库--大数处理类--BigInteger (2011-10-13 19:53:18)转载▼标签: java 常用 类库 -- 大数 处理 类 biginteger 杂谈分类: JavaJava常转载 2014-09-27 15:08:25 · 531 阅读 · 0 评论