摘要: 1 #include 2 3 int main() 4 { 5 int t , i , v; 6 while(1) 7 { 8 if(scanf("%d",&t)!=1)break; 9 for(i = 1 , v = 1 ; i %d\n",t , v%10);17 }18 return 0 ;19 }http://blog.csdn.net/lyhvoyage/article/details/9307009 阅读全文
posted @ 2013-12-06 22:18 shaughn 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 3 int main() 4 { 5 int k , m , n,cnt ,s; 6 while(1) 7 { 8 if(scanf("%d%d%d",&k,&m,&n)!=3)break ; 9 s = m*n ;10 cnt = 1;11 while(s != m)12 {13 s = s%k*n + s/k ;14 cnt++;15 }16 printf("%d\n"... 阅读全文
posted @ 2013-12-06 21:08 shaughn 阅读(75) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 int main() 5 { 6 double v ; 7 while(1) 8 { 9 scanf("%lf",&v);10 if(v-0<=1e-10)break;11 double k;12 k = sqrt(v);13 if(k-(int)k<=1e-10)printf("yes\n");14 else printf("no\n");15 }16 return 0 ;1... 阅读全文
posted @ 2013-12-06 20:34 shaughn 阅读(85) 评论(0) 推荐(0) 编辑