程式碼:https://hackmd.io/uTlVfoxzTc-l60cbJVwO6g?view=&stext=5762%3A409%3A0%3A1753126043%3AKkHSV0
DP表格生成記得放在while True的外面
邏輯就是method[j] = method[j-i]