현재까지 합을 갱신해준다는 느낌
n = int(input()) m = list( map(int, input().split(' '))) for i in range(1, n): m[i] = max(m[i], m[i] + m[i-1]) print(max(m))