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 1360. Philosophical Dispute

WA test #9
Posted by Evil Cheater 30 Jun 2005 23:33
Hi!

  I keep getting WA in test 9. Here's what I'm doing:
1.- solve for t in y = cos(t)
2.- if the solution is negative, adjust it.
3.- while that t doesn't make x = sin(sqrt(t)), find the next solution.
4.- if (t<10^12) then print solution else print "FAIL".

  For checking if x = sin(sqt(t)) I use (abs(sin(sqrt(t))-x)>e). Would it be better to solve t for x = sin(sqrt(t)) and then check y = cos(t)? Is it posible to get "FAIL" as an answer? Any sugestions?

Thanks!



Edited by author 01.07.2005 00:09
Never it happens "FAIL"
Posted by Виктор Крупко 1 Jul 2005 00:05
Re: Never it happens "FAIL"
Posted by Evil Cheater 8 Jul 2005 03:44
Thanks!

  About my algorithm? Is it wrong or is it just badly implemented?