文章分类 -  大数

摘要:N!Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 44897 Accepted Submission(s): 12748Problem DescriptionGiven an integer N(0 ≤ N ≤ 10000), your task is to calculate N! InputOne N in one line, process to the end of file. OutputFor each N, ou... 阅读全文
posted @ 2013-09-29 17:46 heaventouch 阅读(145) 评论(0) 推荐(0) 编辑
摘要://大数,直接开数组加#include#includeint s[1005];void Add(char a[],char b[]){ int lena=strlen(a); int lenb=strlen(b); int len=lena>lenb?lena:lenb; int ia[1005]={0}; int ib[1005]={0}; for(int i=0;i=0;j--) printf("%d",s[j]); printf("\n"); if(n) printf("\n"); } return 0;} 阅读全文
posted @ 2013-09-11 19:14 heaventouch 阅读(265) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示