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 |
实在没办法了:help#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