觉得浮夸了四年,漠然发现原来是浮躁了四年!

摘要: http://acm.hdu.edu.cn/showproblem.php?pid=3123题目给出的n很大,很明显如果n很大时,是不用处理到n的,所以其中必有蹊跷!当n大于m时 ,n的阶乘中必定包含因数m,所以取余后必定为0;这是本体的关键。View Code 1 #include<stdio.h> 2 #include<string.h> 3 int main() 4 { 5 __int64 ans,sum,temp,max; 6 char str[150]; 7 int t,m,len; 8 int i; 9 scanf("%d",&t 阅读全文
posted @ 2012-12-31 21:10 heat nan 阅读(203) 评论(0) 推荐(0)