Search found 3 matches

by kspilario
Thu Nov 24, 2011 6:08 pm
Forum: Volume 6 (600-699)
Topic: 641 - Do the Untwist
Replies: 9
Views: 7953

Re: 641 - Do the Untwist

ayaw,

I think

if(pcode>=28) pcode-=28;

should be

while(pcode>=28) pcode-=28;
by kspilario
Mon Sep 12, 2011 4:04 am
Forum: Volume 101 (10100-10199)
Topic: 10135 - Herding Frosh
Replies: 33
Views: 19073

Re: 10135 - Herding Frosh

My AC code had a runtime error for the case:
1
0 0
But for all other cases, here is my output (in order):
2.00

4.83

6.00

6.00

6.00

6.00

6.00

10.00

8.24
by kspilario
Mon Jun 20, 2011 3:57 pm
Forum: Volume 111 (11100-11199)
Topic: 11114 - Polygon Encoder
Replies: 9
Views: 7889

Re: 11114 - Polygon Encoder

The problem should have stated that the points calculated after decoding were already sorted in ccw/cw order.
I had trouble sorting them so that my area calculation would work. (Too many WAs)

Go to advanced search