|
|
I cann't understand why WA#10. Must I use long double? Please, give me some terrible tests. 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"... 0-result must be established in int64 only use 6 permutations for vertices of aim triangle also 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. 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. The numbers dy, x0, y0 and A must contain not less than 10 fractional digits. Maybe: The numbers [ dx ], dy, x0, y0... I got WA on test#10 But I can't find out what's wrong with my code. Can you give me some tests? Thanks a lot. Here is the test 1 0 -1 0 0 1.73205080756 3 0 1 0 2 1.73205080756 The answer is 1 -2.0000000000 0.00000000000 Oh!Thank you very much! I got AC now! Edited by author 06.11.2008 19:04 for WA #4 try this triangles with pairwise parallel sides: 0 0 1 1 2 0 0 0 1 -1 2 0 Also 2 0 0 0 1 1 2 0 3 -1 4 0 2 0 0 0 1 1 2 -1 3 -2 4 -1 Angle is 180 for each case, the center or rotation you should easily find after drawing the triangles. UPD: WA #11 now... UPD: Closed, AC now... Hint: try test: 0 0 0 2 -2 1 1 0 -1 0 0 2 Answer: 2 -0.5 0.5 90 Edited by author 02.07.2008 02:57 Test: 0 0 1 0 0 1 1 1 2 1 1 2 Answer: 1 -1.0 -1.0 I have WA#3 input 0 0 1 0 0 1 0 0 1 0 0 1 my output 1 0.00000000000 0.00000000000 Edited by author 11.03.2007 11:38 |
|
|