Codeforces Round #119 (Div. 2) / 189A Cut Ribbon (完全背包)
A.CutRibbonhttp://codeforces.com/problemset/problem/189/Atimelimitpertest2secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputPolycarpushasaribbon,itslengthisn.Hewantstocuttheri