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 youyou at 2007-07-25 17:28:32 on Problem 1006
#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:
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