← Back to List

24074번: 分割 (Split) ↗

Solutions

Python 3
112 B | 112 chars
n = int(input())
l = [*map(int, input().split())]

i = l.index(max(l))

print(sum(l[:i]), sum(l[i+1:]),sep="\n")