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 1413. Mars Jumper

What is wrong? C++ WA2 Pascal WA3
Posted by alext 28 Aug 2007 00:20
wtf?? My equal solutions on Pascal and C++ has WA on tests 3 and 2. Why? I used some formulas - sqrt(2)/2, cos(pi/4), and others.

May be, error in real types (I used some variants:
Pascal - extended
C++ - double, long double
)

I read other topics about this problem, but I have not AC :)

Thanks.
Re: What is wrong? C++ WA2 Pascal WA3
Posted by Lomir 28 Aug 2007 00:57
I used:
const double root = sqrt(2.0)/2.0;
Re: What is wrong? C++ WA2 Pascal WA3
Posted by Lomir 28 Aug 2007 00:57
Ups.. double post..

Edited by author 28.08.2007 00:57