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 1490. Fire Circle

why i haven't crash on my computer for all tests?
Posted by TereshinVS 24 Jun 2009 01:13
I haven't crash on my computer on all tests but have crash floating-point 10... Also my answers r<20000 is right if my brute force is right. sorry for my bad English
Re: why i haven't crash on my computer for all tests?
Posted by Partisan 24 Jun 2009 02:02
Do you use int?
Maybe you use something sqrt(sqr(int)+sqr(int)), and sqr(10^5)=10^10 makes overflow in int, and you get sqrt from negative number? r is <=100000.