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 1482. Triangle Game

Anybody get WA#10?
Posted by MAI.8 16 Oct 2006 06:05
I cann't understand why WA#10. Must I use long double? Please, give me some terrible tests.
Re: Anybody get WA#10?
Posted by Vasyl Biletskyy 17 Oct 2006 05:24
I got WA on test 10 too. And it's a little bit strange because the algo is simple. Maybe there are some problems with "10 fractional digits"...
Re: Anybody get WA#10?
Posted by svr 5 Dec 2006 08:16
0-result must be established in int64 only
use 6 permutations for vertices of aim triangle also
Re: Anybody get WA#10?
Posted by Denis Koshman 26 Aug 2008 02:56
long double won't help because it's same type as double in VC++

As for 6 permutations, I think there must be only 3. Otherwise we'll consider flip-overs.
Re: Anybody get WA#10?
Posted by alp 14 May 2014 18:03
MAI.8 wrote 16 October 2006 06:05
I cann't understand why WA#10. Must I use long double? Please, give me some terrible tests.

long double4 is normal.
Use EPS = 0.00000001; if use EPS = 0.00000000001 then get WA11.