Arranging Heaps

http://acm.hust.edu.cn/vjudge/contest/view.action?cid=20333#problem/A

原文地址:https://www.cnblogs.com/zhang1107/p/3070264.html