I am sorry. Yes, the correct answer is 5.43. I had errors with floating point comparison in my previous AC code. Thanks to Little Joey for helping me finding my mistake. Now, my AC code gives 5.43. However, I don't know how my previous code got AC.
Sorry again for the confusion.
Search found 11 matches
- Wed May 16, 2007 11:08 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11177 - Fighting Against a Polygonal Monster
- Replies: 15
- Views: 10715
- Wed May 16, 2007 9:21 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11177 - Fighting Against a Polygonal Monster
- Replies: 15
- Views: 10715
- Mon Mar 20, 2006 7:38 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
- Mon Mar 20, 2006 5:18 pm
- Forum: Volume 110 (11000-11099)
- Topic: 11014 - Make a Crystal
- Replies: 16
- Views: 8815
11014 - Make a Crystal
I am getting WA for this problem. Can anyone tell me what are the correct output for 6, 8 & 10? I get 290, 530 & 1010 respectively. Are these results right?
Nafi
Nafi
- Thu Mar 24, 2005 3:25 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10836 - The Maximum Term
- Replies: 5
- Views: 2741
- Thu Mar 24, 2005 9:13 am
- Forum: Volume 108 (10800-10899)
- Topic: 10836 - The Maximum Term
- Replies: 5
- Views: 2741
10836 - The Maximum Term
i'm getting wa in this problem. please check if my output for these input are correct.
input:
8 2 2 2 2
100 20 20 20 20
250 1 2 3 4
6 10 10 10 10
300 1 199 199 199
300 1 19 91 99
101 101 102 103 104
100 1 1 100 100
50 1 1 1 1
24 1 1 1 1
80 1 1 4 4
90 7 1 9 1
199 11 13 17 19
201 2 3 5 7
0 0 0 0 0 ...
input:
8 2 2 2 2
100 20 20 20 20
250 1 2 3 4
6 10 10 10 10
300 1 199 199 199
300 1 19 91 99
101 101 102 103 104
100 1 1 100 100
50 1 1 1 1
24 1 1 1 1
80 1 1 4 4
90 7 1 9 1
199 11 13 17 19
201 2 3 5 7
0 0 0 0 0 ...
- Mon Sep 06, 2004 6:19 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10708 - Cheetah
- Replies: 14
- Views: 8362
- Fri Aug 06, 2004 3:58 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10695 - Find the Point
- Replies: 16
- Views: 12167
hi,at last i got it accepted. there was no problem with precision i think. the problem was in my "bisection method". i applied this on AO. but if the angles AOB or AOC was less then 90 then the method becomes useless.
if so occured, i then applied the method on BO or CO. after fixing this, i got ac ...
if so occured, i then applied the method on BO or CO. after fixing this, i got ac ...
- Fri Aug 06, 2004 9:02 am
- Forum: Volume 106 (10600-10699)
- Topic: 10695 - Find the Point
- Replies: 16
- Views: 12167
- Fri Aug 06, 2004 8:56 am
- Forum: Volume 106 (10600-10699)
- Topic: 10695 - Find the Point
- Replies: 16
- Views: 12167
- Thu Aug 05, 2004 11:00 pm
- Forum: Volume 106 (10600-10699)
- Topic: 10695 - Find the Point
- Replies: 16
- Views: 12167
10695 - Find the Point
hi
i have done everything (i guess) to solve this problem (10695). but i'm getting WA. i don't know why. i'm confused.
does anyone have any special test cases?
i print "IMPOSSIBLE" on these cases:
1. if BOC+COA+AOB !=360
2. if !(0<BOC<180) or !(0<COA<180) or !(0<AOB<180)
3. if BOC<=A or COA<=B or ...
i have done everything (i guess) to solve this problem (10695). but i'm getting WA. i don't know why. i'm confused.
does anyone have any special test cases?
i print "IMPOSSIBLE" on these cases:
1. if BOC+COA+AOB !=360
2. if !(0<BOC<180) or !(0<COA<180) or !(0<AOB<180)
3. if BOC<=A or COA<=B or ...