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 |
错在那?#include<stdio.h> void main() { int p,e,i,d,n,sum,days,j; scanf("%d%d%d%d",&p,&e,&i,&d); do{ n++; for(j=i;j<=21252;j+=33){ for(j>d;j>=p;j>=e){ do{ sum=j;} while((j-p)%23==0,(i-e)%28==0);} days=sum-d; printf("Case %d: the next triple peak occurs in %d days.\n",n,days);} while(p!=-1,e!=-1,i!=-1,d!=-1); } Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator