Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
这个程序写的真紧凑啊In Reply To:实在没办法了:help Posted by:ACM05001_dz0302 at 2005-07-28 12:28:55 > #include"stdio.h" > void main() > { int a,b,c,d,i,j=0,n; > while(1){scanf("%d%d%d%d",&a,&b,&c,&d);j++; > if(a==-1&&b==-1&&c==-1&&d==-1) break; > for(i=0;i<644;i++){if(((i*33-c%33+b%28)%28==0)&&((i*33-c%33+a%23)% ~~~~~~~~~~~~~~~~~~~~~~这个判断是什么意思? 23==0))break;} > n=21252-(33*i-c%33+d); > printf("Case %d: the next triple peak occurs in %d days.\n",j,n); > } > > } Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator