2013年11月24日

HDOJ3398

摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3398很好的题目,考查数学思想!基本上是快速幕+ N!的快速质因数分解,看了他人的解题报告:我写的代码: 1 #include 2 #include 3 #include 4 const int max1=2000001; 5 int pri[max1]; 6 int b[max1]; 7 int ci[max1]; 8 int t=0; 9 void prime()10 {11 for (int i=4;i=pri[i];i++)59 while (kk%pri[... 阅读全文

posted @ 2013-11-24 09:32 forgot93 阅读(124) 评论(0) 推荐(0) 编辑

导航