2012年8月24日

HDU 1042 N! (大数阶乘)

摘要: 地址:http://acm.hdu.edu.cn/showproblem.php?pid=1042思路:大数阶乘代码如下: 1 #include<stdio.h> 2 #include<string.h> 3 #include<stdlib.h> 4 #define N 40000 5 int s[N]; 6 int main() 7 { 8 int i,j,k,t,n; 9 while(scanf("%d",&n)!=EOF)10 {11 memset(s,0,sizeof(s));//每次使用前都要清零 12 s[0]=1; 阅读全文

posted @ 2012-08-24 09:06 mycapple 阅读(409) 评论(0) 推荐(0) 编辑

导航