461 - The Reservation Maker
Posted: Sun May 25, 2014 11:56 pm
Note the Sample output in 461 only demonstrate the formatting (not correct output),
since party of 4 clearly takes <60 minutes,
so we can schedule the part of 4 for bench 1 at time 0, and it will be still available at time=60 minutes to
be scheduled again.
The correct output to the sample input is the following.
since party of 4 clearly takes <60 minutes,
so we can schedule the part of 4 for bench 1 at time 0, and it will be still available at time=60 minutes to
be scheduled again.
The correct output to the sample input is the following.
Code: Select all
1 0
1 0
2 0
3 0
4 0
3 57
11 12 13 14 15 0
Impossible