NYOJ34-韩信点兵 2
摘要:
1 #include<stdio.h> 2 #include<stdlib.h> 3 int main() 4 { 5 int a,b,c,t=10; 6 scanf("%d%d%d",&a,&b,&c); 7 while(1) 8 { 9 if((t%3==a)&&(t%5==b)&&(t%7==c))10 {11 printf("%d\n",t);12 break;13 }14 if(t>100)15 printf("No ans... 阅读全文
posted @ 2012-08-02 16:25 mycapple 阅读(239) 评论(0) 推荐(0)