[HAOI2011] problem a

https://ac.nowcoder.com/acm/contest/1168/H

原文地址:https://www.cnblogs.com/qqshiacm/p/11873070.html