← Back to List

13416번: 주식 투자 ↗

Solutions

Python 3
139 B | 139 chars
for t in range(int(input())):
    s = 0
    for i in range(int(input())):
        s += max([0]+list(map(int,input().split())))
    print(s)