Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@lifez
Created April 23, 2013 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lifez/5443791 to your computer and use it in GitHub Desktop.
Save lifez/5443791 to your computer and use it in GitHub Desktop.
n = int(raw_input())
x = 0
y = 0
z = 0
for i in range(0, n):
ss = raw_input().split(" ")
x += int(ss[0])
y += int(ss[1])
z += int(ss[2])
print "YES" if x == 0 and y == 0 and z == 0 else "NO"c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment