solutions: 69A
This commit is contained in:
parent
783ba33962
commit
5c28a40d91
1 changed files with 20 additions and 0 deletions
20
solutions/69A.py
Normal file
20
solutions/69A.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
n = int(input())
|
||||||
|
|
||||||
|
coordinates = [0, 0, 0]
|
||||||
|
|
||||||
|
for _ in range(n):
|
||||||
|
x, y, z = [int(d) for d in input().split(' ')]
|
||||||
|
|
||||||
|
coordinates[0] += x
|
||||||
|
coordinates[1] += y
|
||||||
|
coordinates[2] += z
|
||||||
|
|
||||||
|
check = True
|
||||||
|
for i in coordinates:
|
||||||
|
if i != 0:
|
||||||
|
check = False
|
||||||
|
|
||||||
|
if check:
|
||||||
|
print("YES")
|
||||||
|
else:
|
||||||
|
print("NO")
|
Loading…
Reference in a new issue