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

Output Limit Exceeded

Posted by 15 at 2008-01-03 17:45:09 on Problem 3200
#include<stdio.h>

int main()
{
	long a=0,b=0,c=0,d=0,e=0;
	long n,x,y,r;
	long count=0,feasible=1;
	for(;;){
		count=0;
		feasible=1;
		scanf("%d",&n);
		if(!n)break;
		scanf("%d %d %d",&x,&y,&r);
		a=1;b=1;c=-2*x;d=-2*y;e=x*x+y*y-r*r;
		n--;
		while(n--){
			count++;
			scanf("%d %d %d",&x,&y,&r);
			if(a*x*x+b*y*y+c*x+d*y+e>=0){
				feasible=0;
				break;
			}

			a=a+1;b+=1;c+=(-2*x);d+=(-2*y);e+=x*x+y*y-r*r;
		}
		if(feasible)
			printf("Feasible\n");
		else
			printf("Unfeasible %d\n",count);
	}
	return 0;
}
错误提示是:Output Limit Exceeded,请大家帮帮忙,我确实不知是多输出了哪些东西.

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