Just for giggles, I just replaced all FP routines in a copy of my program with equivalent integer calculations.
The program was still accepted. It runs slightly slower, but not significantly so (about 10ms difference). The runtime is obviously dominated by all the sorting going on.
Search found 9 matches
- Mon Jul 17, 2006 8:29 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19003
- Mon Jul 17, 2006 7:39 pm
- Forum: Volume 109 (10900-10999)
- Topic: 10927 - Bright Lights
- Replies: 26
- Views: 19003
I got AC on first try with a solution that does use floating point arithmetics (for polar coordinates). I didn't even use < EPSILON for equality checks, but ==. I was aware of the possibility of doing it integer-only, but I thought, let's try floats first, it's easier to code and I can still rewrite ...
- Fri Jul 07, 2006 9:03 pm
- Forum: Volume 4 (400-499)
- Topic: 453 - Intersecting Circles
- Replies: 84
- Views: 29075
- Wed Jul 05, 2006 12:27 am
- Forum: Volume 4 (400-499)
- Topic: 453 - Intersecting Circles
- Replies: 84
- Views: 29075
- Wed Jul 05, 2006 12:23 am
- Forum: Volume 4 (400-499)
- Topic: 453 - Intersecting Circles
- Replies: 84
- Views: 29075
- Sun Jul 02, 2006 3:13 pm
- Forum: Volume 4 (400-499)
- Topic: 453 - Intersecting Circles
- Replies: 84
- Views: 29075
- Tue Nov 29, 2005 9:17 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124809
- Tue Nov 29, 2005 9:04 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124809
- Tue Nov 29, 2005 5:40 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10189 - Minesweeper
- Replies: 418
- Views: 124809
10189 (Minesweeper): WA
The code works on lots of test cases, including any "special" case I could think of. I believe also made the input parsing as robust as I possibly could. So...why does this code get WA? I compared it to code posted here that people said to be accepted, and I don't think I'm doing anything ...