solutions: 69A

This commit is contained in:
Muhammad Nauman Raza 2025-01-14 09:54:05 +00:00
parent 783ba33962
commit 5c28a40d91
Signed by: devraza
GPG key ID: 91EAD6081011574B

20
solutions/69A.py Normal file
View 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")