Introduction - If you have any usage issues, please Google them yourself
Loading Problem
Description and purpose of the experiment
N containers are loaded on two to load c1 and c2, respectively, for the ship, which i-weight containers wi, required to determine whether there is a reasonable solution can be loaded the container loaded on the two ships. If so, find a loaded program.
Note that the conditions are met before the container could be loaded on the two ships.
Input sample
3
104,040
50 50
3
204,040
50 50
Sample Output
Case 1
50 110
Case 2
No