I'm also repeatedly getting WA, and since this seems to be very simple problem, I'm starting to suspect that i missed something ;p
Basic math assumptions that i made:
1) coordinates for center of mass for multiple objects are independent of each other (ie, Xcm does not depend on Y coordinates of ...
Search found 11 matches
- Fri Oct 13, 2006 11:19 am
- Forum: Volume 111 (11100-11199)
- Topic: 11116 - Babel Towers
- Replies: 12
- Views: 7402
- Mon Oct 09, 2006 2:32 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11107 - Life Forms
- Replies: 21
- Views: 17490
- Fri Oct 06, 2006 1:33 pm
- Forum: Pascal
- Topic: How to detect Runtime Errors in PASCAL
- Replies: 2
- Views: 6640
- Fri Oct 06, 2006 1:26 pm
- Forum: Pascal
- Topic: How to detect Runtime Errors in PASCAL
- Replies: 2
- Views: 6640
- Fri Oct 06, 2006 1:20 pm
- Forum: Pascal
- Topic: How to detect Runtime Errors in PASCAL
- Replies: 2
- Views: 6640
How to detect Runtime Errors in PASCAL
I had several very unpleasant experiences with Runtime Errors (RE) being reported as Wrong Answer (WA).
Reason for those is mentioned in post about 'submitting Pascal'. It turns out that FPC does not emit error signal (at least not under Linux), so if RE occurs your program either just abort ...
Reason for those is mentioned in post about 'submitting Pascal'. It turns out that FPC does not emit error signal (at least not under Linux), so if RE occurs your program either just abort ...
- Thu Oct 05, 2006 11:25 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10853 - Pablito nailed a nail
- Replies: 10
- Views: 4207
- Wed Oct 04, 2006 10:20 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11106 - Rectilinear Polygon
- Replies: 33
- Views: 12117
- Wed Oct 04, 2006 10:02 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11106 - Rectilinear Polygon
- Replies: 33
- Views: 12117
- Wed Oct 04, 2006 9:46 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11106 - Rectilinear Polygon
- Replies: 33
- Views: 12117
- Wed Oct 04, 2006 9:38 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11107 - Life Forms
- Replies: 21
- Views: 17490
uhm... this is one of rare problems where i really start wondering if i should do them in PASCAL
after few optimisations, i finally got it to run fairly fast on my PC- even for more complicated cases with 100 lines, each around 1000 long, and with common string about 500 long. It runs fast on judge ...
after few optimisations, i finally got it to run fairly fast on my PC- even for more complicated cases with 100 lines, each around 1000 long, and with common string about 500 long. It runs fast on judge ...
- Wed Oct 04, 2006 9:25 pm
- Forum: Volume 111 (11100-11199)
- Topic: 11106 - Rectilinear Polygon
- Replies: 33
- Views: 12117
one easy way to check if resulting polygon is 'simple' is to start from any point and move along lines , flagging points as you go, untill you hit already flagged point.
then you just check if in that process you flaged all points.
of course, it rely on being able to see which points are connected ...
then you just check if in that process you flaged all points.
of course, it rely on being able to see which points are connected ...