用dp(dynamic programming)動態規劃紀錄遞迴的最佳解
https://66lemon66.blogspot.com/2020/10/zerojudge-d637-duck-c.html