Search found 4 matches

by eric7237cire
Mon Apr 01, 2013 7:22 pm
Forum: Volume 101 (10100-10199)
Topic: 10180 - Rope Crisis in Ropeland!
Replies: 39
Views: 21328

Re: 10180 - Rope Crisis in Ropeland !

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.
by eric7237cire
Sun Mar 31, 2013 1:43 am
Forum: Volume 110 (11000-11099)
Topic: 11094 - Continents
Replies: 43
Views: 19638

Re: 11094 - Continents

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...
by eric7237cire
Sat Mar 30, 2013 5:14 pm
Forum: Volume 114 (11400-11499)
Topic: 11420 - Chest of Drawers
Replies: 11
Views: 4920

Re: 11420 - Chest of Drawers

While probably obvious to most, just in case.

You need to use 64 bit integers (signed is ok)
by eric7237cire
Sat Mar 30, 2013 4:17 pm
Forum: Volume 113 (11300-11399)
Topic: 11341 - Term Strategy
Replies: 20
Views: 7674

Re: 11341 - Term Strategy

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...

Go to advanced search