摘要: 一看四个整数的范围,<=10000 所以我们肯定不能直接打表求阶乘 利用唯一分解定理(任何一个大于1的正整数都能够被唯一地分解成质因子乘积) #include<iostream> #include<string> #include<string> #include<string.h> #includ 阅读全文
posted @ 2016-03-09 20:33 咸咸的告别 阅读(328) 评论(0) 推荐(0) 编辑
摘要: #include<iostream> #include<string> #include<string> #include<string.h> #include<stdio.h> #include<queue> #include<math.h> #include<vector> #include<s 阅读全文
posted @ 2016-03-09 18:52 咸咸的告别 阅读(450) 评论(0) 推荐(0) 编辑
摘要: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=&problem=2629&mosmsg=Submission+received+with+ID+1697 阅读全文
posted @ 2016-03-09 15:00 咸咸的告别 阅读(253) 评论(0) 推荐(0) 编辑