可參考我在d133的解題:https://hackmd.io/uTlVfoxzTc-l60cbJVwO6g?view=&stext=5762%3A409%3A0%3A1753126043%3AKkHSV0
DP關係式:method[j] += method[j-i]