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
- Mon Apr 01, 2013 7:22 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10180 - Rope Crisis in Ropeland!
- Replies: 39
- Views: 27698
- Sun Mar 31, 2013 1:43 am
- Forum: Volume 110 (11000-11099)
- Topic: 11094 - Continents
- Replies: 43
- Views: 28342
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 ...
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 ...
- Sat Mar 30, 2013 5:14 pm
- Forum: Volume 114 (11400-11499)
- Topic: 11420 - Chest of Drawers
- Replies: 11
- Views: 7097
Re: 11420 - Chest of Drawers
While probably obvious to most, just in case.
You need to use 64 bit integers (signed is ok)
You need to use 64 bit integers (signed is ok)
- Sat Mar 30, 2013 4:17 pm
- Forum: Volume 113 (11300-11399)
- Topic: 11341 - Term Strategy
- Replies: 20
- Views: 11590
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 ...
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 ...