| ||||||||||
| 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>
int main()
{
int p,e,i,d,m,j,k;
scanf("%d%d%d%d",&p,&e,&i,&d);
m=0;
while(p!=-1 && e!=-1 && i!=-1 && d!=-1)
{
m++;
k=p;
while(k-b<=21252)
{
k=k+23;
if((k-e)%28==0&&(k-i)%33==0)
{k=k-d;
printf("Case %d: the next triple peak occurs in %d days.\n",m,k);
break;}
}
scanf("%d%d%d%d",&p,&e,&i,&d);
}
return 0;
}
Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator