10011 I/O

The forum to report every bug you find or tell us what you'd like to find in UVa OJ

Moderator: Board moderators

Locked
altertain
New poster
Posts: 9
Joined: Sat Jan 13, 2007 10:14 am

10011 I/O

Post by altertain » Mon Jan 22, 2007 6:31 am

In this problem, I could read a sentence "Neither the house nor the radiation source is inside the tree."

But when I submitted this code, I received Output Limit Exceeded.


struct pnt {
double x,y;
};

pnt c,p;
double r;

int main()
{
int t;

scanf("%d",&t);
while (t--) {
cin>>c.x>>c.y>>r>>p.x>>p.y;
if ((c.x-p.x)*(c.x-p.x)+(c.y-p.y)*(c.y-p.y)<r*r-(1e-5)) {
while(1)
printf("0");
}
}
return 0;
}

c is the location of the tree and p is the location of the house.

r is the radius of the tree.

Am I wrong? Or is the judge wrong?
Lee, Taeyoon

tgoulart
New poster
Posts: 42
Joined: Sat Oct 21, 2006 8:37 am
Location: Alegrete, Brazil

Post by tgoulart » Mon Feb 26, 2007 4:50 am

I also checked with assert and got Runtime Error.

But I guess in this cases we just have to print "0.000", right?
Thiago Sonego Goulart - UFMG/Brazil

User avatar
Carlos
System administrator
Posts: 1286
Joined: Sat Oct 13, 2001 2:00 am
Location: Valladolid, Spain
Contact:

Post by Carlos » Sun Apr 08, 2007 1:01 pm

There were 2 wrong test cases. I've deleted them (their solution was 0.000 anyway).

Thanks for the report!
DON'T PM ME --> For any doubt, suggestion or error reporting, please use the "Contact us" form in the web.

Locked

Return to “Bugs and suggestions”