ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1679. Scrooge's Tower

WA on test #4
Posted by ahmedov(NUUz_2) 10 Jan 2009 17:26
pls, give me some tests
Re: WA on test #4
Posted by spiker 9 Jul 2009 20:54
I've too have this problem:)
Re: WA on test #4
Posted by 198808xc 20 Aug 2011 18:48
Well, I had this problem, too.
This is caused by a small bug, that is very silly.

You must have written something like this:

if (xA * xA + yA * yA < R * R / 2)
cout<<"NO"<<endl;

However, the solution should be like this:

if ((xA * xA + yA * yA) * 2 < R * R)
cout<<"NO"<<endl;

What a stupid mistake!

Good luck :)