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 1285. Thread in a Hyperspace

Problem 1285 "Thread in a Hyperspace" has been rejudged
Posted by Vladimir Yakovlev (USU) 30 Apr 2018 01:04
New tests have been added to the problem which exploit a common mistake when using acos function. Hint: try to calculate acos(sqrt(3.0) * sqrt(3.0) - 4.0) in your programming language. 269 authors (58%) with accepted solutions have been challenged.
Re: Problem 1285 "Thread in a Hyperspace" has been rejudged
Posted by Orient 3 May 2018 17:14
Why is this a mistake?

How to modify the solution to avoid the mistake? Who knows?
Re: Problem 1285 "Thread in a Hyperspace" has been rejudged
Posted by Orient 3 May 2018 17:24
OK, just need to add a clamp for acos' arg.