http://codeforces.com/contest/1257/problem/D
简单dp问题
转发一个博客
https://www.cnblogs.com/QingyuYYYYY/p/11863747.html
D. Yet Another Monster Killing Problem
原文:https://www.cnblogs.com/AAAzhuo/p/11877542.html