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 zbt2222 at 2009-07-20 14:36:28 on Problem 1006
#include<stdio.h>
void main()
{
	int p[10],e[10],m[10],d[10],i=0,fp,fe,fm,j;

	do{
		scanf("%d%d%d%d",&p[i],&e[i],&m[i],&d[i]);
		i++;
	}while((p[i-1]!=-1)&&(e[i-1]!=-1)&&(m[i-1]!=-1)&&(d[i-1]!=-1));
	for(i=0;i<=10;i++)
    for(j=1;;j++)
	{
		fp=23*j+p[i];
		fe=28*j+e[i];
		fm=33*j+m[i];
		if(fp==fe==fm)
			printf("%d",fp-d[i]);
	
	}
}

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