Page 2 of 2

Posted: Thu Feb 17, 2005 8:26 pm
by Destination Goa
Ok, now made it this way. Anyway, this solution seems to me more error-prone and intolerant to precision errors. At least with my implementation.

Test cases.

Posted: Thu Oct 27, 2005 12:59 am
by Ndiyaa ndako
What is the output of an accepted solution for these test cases?

12
50,13N 45,10W 75,0N 44,50E
50,13N 90,10W 75,0N 89,50E
10,0N 129,30E 10,0S 50,30W
15,0N 0,0W 10,0N 0,0W
10,0N 0,0W 15,0N 0,0W
75,0N 44,50E 50,13N 45,10W
75,0N 89,50E 50,13N 90,10W
10,0N 0,0W 10,0S 0,0W
10,0S 0,0W 15,0S 0,0W
10,0S 160,0W 10,0N 160,0E
90,0N 0,0W 90,0S 0,0W
1,0S 10,0W 2,0N 170,0E

Thanks.

Posted: Thu Oct 27, 2005 6:48 am
by Cho

Code: Select all

75,41N
90,0N
undefined
15,0N
15,0N
75,41N
90,0N
10,0N
10,0S
10,0N
90,0N
90,0N