Description: 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
To Search:
File list (Check if you may need any files):
22\22.cpp
..\22.dsp
..\22.dsw
..\22.ncb
..\22.opt
..\22.plg
..\Debug\22.exe
..\.....\22.ilk
..\.....\22.obj
..\.....\22.pch
..\.....\22.pdb
..\.....\vc60.idb
..\.....\vc60.pdb
..\Debug
22