| ||||||||||
| 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 | |||||||||
求助:这个1006为什么过不了???#include "math.h"
#include "stdio.h"
void main()
{
int n=1,a,b,c,d,i;
do
{
scanf("%d %d %d %d",&a,&b,&c,&d);
for(i=c;((i-b)%28)!=0;i=i+33) {}
for(;((i-a)%23)!=0;i=i+924) {}
if (i==0) i=21252;
if (a!=-1) printf("Case %d: the next triple peak occurs in %d days.\n",n,i-d);
n++;
}
while(a!=-1&&b!=-1&&c!=-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