[Zj c076] [UVA 00591] Box of Bricks

 題目連結:https://zerojudge.tw/ShowProblem?problemid=c067https://zerojudge.tw/ShowProblem?problemid=c067

題意:給你n堆方塊,搬動最少數目的方塊使每堆(總堆數同n)的方塊數量相同。輸出最小數目。保證有正解。



code: https://github.com/Pizza-Man217/Zerojudge-solutions/blob/master/c067.cpp


留言

這個網誌中的熱門文章

[Zj e511] [UVA 11364]-Parking

[Zj b838][104北二區桃竹苗基資訊學科能力複賽] 括號問題

[Zj d039][UVA 11044] Searching for Nessy