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 1153. Supercomputer

WA 6
Posted by psiml 11 Oct 2011 23:58
Hello, I have a problem with test 6 - can you please give me some similar input and right answer? I read this discuss and I found only something about wrong character problem, so I added testing of it (if there are any not number characters, it ignores them). It didn't help. Thanks and sorry for my English.

Edited by author 12.10.2011 18:05
Re: WA 6
Posted by psiml 13 Oct 2011 23:04
I found a mistake, it was that: if you use java, you must use BigInteger, not just long or double. I hope it will help someone.
Re: WA 6
Posted by VNXtreMe 4 Jan 2012 11:29
I'm pretty sure that the test case for 6 is really larger value that will fail if you use Math.sqrt function. Provide your own square root function and you will AC for sure :)