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 qichao at 2009-07-20 18:18:46 on Problem 1006
#include<stdio.h>
int main()
{
	int p,e,i,d,x,j=1;
	scanf("%d%d%d%d",&p,&e,&i,&d);
	while(p!=-1&&e!=-1&&i!=-1)
	{
		x=(1288*i+14421*e+5544*p)%21252;
		if(x==0)
			printf("Case %d: the next triple peak occurs in 21252 days.\n",j);
		else
		    printf("Case %d: the next triple peak occurs in %d days.\n",j,x-d);
		j++;
		scanf("%d%d%d%d",&p,&e,&i,&d);
	}
}

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