← Back to List

8725번: Szachy ↗

Solutions

Python 3
103 B | 103 chars
ans = 0
for i in range(int(input())):
	l = [*map(int,input().split())]
	ans+= max(0, max(l))
print(ans)