摘要:
http://acm.sdut.edu.cn/sdutoj/showproblem.php?pid=2164&cid=1173这个题不用大数,其使用杨辉三角就可以百度上搜杨辉三角有一个关于阶乘的性质 1 #include<stdio.h> 2 #include<string.h> 3 #define MAXN 1010 4 int ch[MAXN][MAXN] ; 5 int main() 6 { 7 int n ; 8 ch[0][0] = 1 ; 9 ch[0][1] = 0 ;10 ch[1][0] = 1;11 for(int i = 1 ; ... 阅读全文
摘要:
1 #include<stdio.h> 2 #include<ctype.h> 3 #include<string.h> 4 const int MAXN = 1010 ; 5 int main() 6 { 7 int n ; 8 scanf("%d%*c",&n) ; 9 getchar() ;10 char ch[MAXN] ;11 for(int i = 1 ; i <= n ; i++)12 {13 gets(ch) ;14 int flag = 1 ;15 int len = strle... 阅读全文