E. Юный физик

public
yeskendir.sultanov Apr 26, 2024 Never 50
Clone
Python 15.py 13 lines (10 loc) | 268 Bytes
1
n = int(input())
2
3
x = [0 for i in range(n)]
4
y = [0 for i in range(n)]
5
z = [0 for i in range(n)]
6
7
for i in range(n):
8
x[i], y[i], z[i] = map(int, input().split())
9
10
if sum(x) == 0 and sum(y) == 0 and sum(z) == 0:
11
print('YES')
12
else:
13
print('NO')