上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页
摘要: 1 #include<stdio.h> 2 #include<stdlib.h> 3 #include<string.h> 4 #define MAX 90000000 5 6 int count = 0; 7 char name[201][40]; 8 int find(char *a) //此函数实现将字符串转化为数字,剽窃党姐的呵呵>_< 9 { 10 int i; 11 for( i = 1; i <= count; i++ ) 12 if( strcmp(a,name[i]) == 0 ) 13 retur... 阅读全文
posted @ 2011-10-19 16:53 zhongya 阅读(302) 评论(0) 推荐(1) 编辑
摘要: 1 #include<stdio.h> 2 #include <string.h> 3 4 int main() 5 { 6 int t=0, a, b, l, n, m, i, j, k, now, maxs, x, y; 7 int cost[501][501], dist[501], s[501]; 8 float time, temp; 9 10 while(scanf("%d%d", &n, &m), n) 11 { 12 for(a=1; a<=n; a++)... 阅读全文
posted @ 2011-10-16 18:12 zhongya 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<string.h> 3 4 int main() 5 { 6 int ncases, i, j, k=1, n; 7 char a[16][30], b[16][30]; 8 9 while(scanf("%d", &ncases) != EOF)10 {11 if (ncases == 0) break;12 for (i=1; i<=ncases; i++) 13 {14 scanf("%s", a[i]); 15 }16 p... 阅读全文
posted @ 2011-09-24 22:30 zhongya 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<string.h> 3 4 int main() 5 { 6 7 char s1[105], s2[105]; 8 9 while(scanf("%s%s", s1, s2) != EOF)10 { 11 int i, j,len1, len2, t=0, a[105]={0}; /*也可以写到外面*/ 12 len1 = strlen(s1);13 len2 = strlen(s2);14 for(i=0,j=0; i... 阅读全文
posted @ 2011-09-20 23:22 zhongya 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 #include<string.h> 3 4 int num[102], num2[102], low[102], high[102]; 5 int cmp(int x[], int y[])//判断函数用作判断超过区域范围。 6 { 7 int i, lenx, leny; 8 lenx = leny = 101; 9 while(x[lenx] == 0) 10 { 11 lenx--; 12 } 13 while(y[leny] == 0) 14 { 1... 阅读全文
posted @ 2011-09-17 21:02 zhongya 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 3 int main() 4 { 5 int a, b, n, i, c[49]; 6 7 while(scanf("%d%d%d", &a, &b, &n) != EOF) 8 { 9 if(a==0 && b==0 && n==0) break; 10 c[1] = 1; 11 c[2] = 1; 12 a = a%7;13 b = b%7;14 for (i=3; i<=49; i++)15 ... 阅读全文
posted @ 2011-09-14 16:47 zhongya 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 int main() 3 { 4 long x1, y1, x2, y2; 5 long x, y; 6 7 while(1) 8 { 9 scanf("%ld%ld",&x, &y); 10 if(x==0&&y==0) break;11 x1 = x; x2 = x;12 y1 = y; y2 = y;13 14 while(scanf("%ld%ld",&x,&y) != EOF)15 {... 阅读全文
posted @ 2011-09-09 18:59 zhongya 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 1 #include<stdio.h> 2 3 int main() 4 { 5 int i, n, a[101], t; 6 7 while(scanf("%d", &n) != EOF) 8 { 9 if(n == 0) break; 10 for(i=0; i<n; i++)11 {12 scanf("%d", &a[i]);13 }14 t = a[0]*6;15 for (i=1; i<n; i++)16 ... 阅读全文
posted @ 2011-09-08 14:24 zhongya 阅读(145) 评论(0) 推荐(1) 编辑
摘要: 1 #include <stdio.h> 2 #include <math.h> 3 #include <string.h> 4 #include <stdlib.h> 5 6 int cmp(const void *a,const void *b) 7 { 8 return *(int *)a - *(int *)b; 9 }10 11 int main()12 {13 int i, n, a[3002], b[3002], count, k;14 15 while(scanf("%d", &n) != EOF)16 阅读全文
posted @ 2011-09-08 14:22 zhongya 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1 #include <stdio.h> 2 3 int main() 4 { 5 long n, ncases, sum; 6 7 while(scanf("%ld", &ncases) != EOF) 8 { 9 while(ncases--)10 {11 sum = 0;12 scanf("%ld", &n); 13 while ( n/5 )14 {15 sum += n/5;16 ... 阅读全文
posted @ 2011-09-07 21:09 zhongya 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 下一页