diff --git a/CodeForces python/Young physicist.py b/CodeForces python/Young physicist.py index a5c7fbb..5b88309 100644 --- a/CodeForces python/Young physicist.py +++ b/CodeForces python/Young physicist.py @@ -1,12 +1,12 @@ n=int(input()) -sx=sy=sz=0 +sx = sy = sz = 0 for i in range(n): - x,y,z=[int(v) for v in input().split()] - sx+=x - sy+=y - sz+=z + x,y,z = [int(v) for v in input().split()] + sx += x + sy += y + sz += z -if sx==0 and sy==0 and sz==0: +if sx == sy == sz == 0: print("YES") else: print('NO')