Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
Output Limit Exceeded#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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator