I am pretty sure they have cases like
10.05 10.05 10.05 10.05 3
which in my case made a function return Nan which throws off comparisons. ie
5 < nan is false but 5 >= nan is also false.
Anyway, make sure you handle the case when the x1,y1 and x2, y2 are the exact same.
Search found 4 matches
Search found 4 matches • Page 1 of 1
- Sun Mar 31, 2013 1:43 am
- Forum: Volume 110 (11000-11099)
- Topic: 11094 - Continents
- Replies: 43
- Views: 19638
Wow. Ok, so in case anyone makes the same silly mistake I did. There is only a blank line between INPUT cases. Not output. Each output is just on one line. I found that out after I made it work for arbitrary whitespace characters as input, ie grids like 4 4 a aa aaa aaaa 3 3 which is totally not nec...
- Sat Mar 30, 2013 4:17 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11341 - Term Strategy
- Replies: 20
- Views: 7674
A couple hints for those getting WA. The problem description is misleading, do not use the ` character in the phrase "Peter, you shouldn't have played billiard that much." Also, I did confirm that exam grades are non decreasing via an assert. One last thing, you can do the average at the very end an...