部分和問題
code:py
import sys
import functools
sys.setrecursionlimit(10 ** 6)
https://algo-method-public-production.s3.ap-northeast-1.amazonaws.com/images%2F86580060-64d5-40dc-8ca5-85a9697021e8%2F%E3%82%B9%E3%82%AF%E3%83%AA%E3%83%BC%E3%83%B3%E3%82%B7%E3%83%A7%E3%83%83%E3%83%88+2021-12-17+17.34.39.png