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 1075. Thread in a Space

WA 48. So strange...
I know that the task was rejudged.
I added the condition for new test, where A, B and C collinear: cos(ACB) - 1.0 < eps, where eps = 1e-8, then answer = AB, but I've still get WA 48. Give me a hint, please.
Thanks in advance.
Re: WA 48. So strange...
Now already accepted, I have found stupid bug in my code.
Ignore first message.
Re: WA 48. So strange...
Posted by MyCatWantsToKill 16 Nov 2018 21:10
And what bug did you found? Just like you I've added a condition for test:
2 4 0
3 6 0
0 0 0
3
The answer is not NaN now, but I still have WA48.
Re: WA 48. So strange...
Posted by ZamNick 8 Nov 2020 18:51
Try cases when all points belongs to one axis only:

Case 1:
6 0 0
2 0 0
4 0 0
1

Case 2:
0 6 0
0 2 0
0 4 0
1

Case 3:
0 0 6
0 0 2
0 0 4
1

For all cases correct answer will be 4.51

Good luck!