Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

错在那?

Posted by ye at 2004-11-10 13:18:56 on Problem 1006
#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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator