随笔分类 -  ZZU || 河南省赛

摘要:View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 int main() 5 { 6 int i, j, ncases, n, k; 7 int a[31][31],flag[4],ok; 8 9 scanf("%d",&ncases);10 while( ncases-- )11 {12 scanf("%d",&n); 13 memset(flag,0,sizeof(flag));14 for(i=0; i 阅读全文
posted @ 2012-05-24 15:34 zhongya 阅读(146) 评论(0) 推荐(0)
摘要:View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 int main() 6 { 7 int i, j, ncases,n,m,k, T; 8 int a[200], b[350], c; 9 10 scanf("%d",&ncases);11 while( ncases-- )12 {13 scanf("%d",&T);14 memset(a,0,sizeof(a));15 for(i=0; i< 阅读全文
posted @ 2012-05-24 15:34 zhongya 阅读(127) 评论(0) 推荐(0)
摘要:一开始拿到这道题时,有点纠结排序后的字符串不知道怎么转回来,最后经别人提醒我把字符和数绑定成一个数组就可以了View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #include<math.h> 5 6 int i; 7 typedef struct 8 { 9 char s[10];10 int n;11 }numble;12 numble num[51];13 14 char word[51][10], sort[51];15 void revers 阅读全文
posted @ 2012-05-24 15:32 zhongya 阅读(132) 评论(0) 推荐(0)
摘要:相比大一时的啥也不懂,大二确实比大一有了点提高。可是这点提高并没有实际的变化,比赛让我看到了与别人的差距。自己的做题经验太少,遇到错误不会处理以及算法的熟练程度不够等等。这些都给我敲响了警钟,让我认识到了自己与别人的差距,哎!技不如人无话可说,只求以后多多训练让自己有个提高期待明年的校赛!在以后的道路上还有很长的路要走,各位亲们一起努力吧! 阅读全文
posted @ 2011-12-11 16:05 zhongya 阅读(126) 评论(0) 推荐(0)
摘要:1 #include<stdio.h> 2 #include<string.h> 3 #include<math.h> 4 5 int gcd(int n,int m) 6 { 7 return m==0 ? n : gcd(m,n%m); 8 } 9 10 int main()11 {12 int n, num_u, i, h, k;13 char ch[65536];14 double m; 15 16 scanf("%d",&n);17 num_u = 0; k = 0;18 scanf("%... 阅读全文
posted @ 2011-12-09 12:07 zhongya 阅读(141) 评论(0) 推荐(1)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<math.h> 4 5 int main() 6 { 7 int i, ncases; double l, d, r,n, num, k; 9 10 while(scanf("%d",&ncases) != EOF)11 {12 for(i=0; i<ncases; i++) 13 {14 scanf("%d%d%d",&l, &d, &r); ... 阅读全文
posted @ 2011-12-08 09:07 zhongya 阅读(165) 评论(0) 推荐(1)
摘要:1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 5 int main() 6 { 7 int ncases, i, j; 8 char a[11], b[11]; 9 10 while (scanf("%d",&ncases) != EOF)11 {12 while( ncases-- ) 13 { 14 scanf("%s", a)... 阅读全文
posted @ 2011-11-30 16:50 zhongya 阅读(133) 评论(0) 推荐(1)