摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2522View Code 1 #include<stdio.h> 2 #include<string.h> 3 int mark[100002]; 4 void pow(int x) 5 { 6 int t; 7 mark[1]=1; 8 t=1; 9 while(t)10 {11 t=t*10;12 printf("%d",t/x);13 t=t%x;14 if(mark[t])//再次出现相同的余数,... 阅读全文
posted @ 2013-05-04 19:19 zlyblog 阅读(182) 评论(0) 推荐(0)
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2491View Code 1 #include<stdio.h> 2 #include<stdlib.h> 3 #define N 100008 4 struct cere 5 { 6 int x,y; 7 int mid,end; 8 }a[N]; 9 int cmp(const void *a,const void *b)10 {11 struct cere *c,*d;12 c=(struct cere *)a;13 d=(struct cere *)b;14 ... 阅读全文
posted @ 2013-05-04 11:22 zlyblog 阅读(164) 评论(0) 推荐(0)