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

求助:这个1006为什么过不了???

Posted by ass at 2003-11-19 22:30:12
#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:
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