From 5c28a40d911ed27152ff192441dc98eb902c1b75 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Tue, 14 Jan 2025 09:54:05 +0000 Subject: [PATCH] solutions: 69A --- solutions/69A.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 solutions/69A.py diff --git a/solutions/69A.py b/solutions/69A.py new file mode 100644 index 0000000..92d78c5 --- /dev/null +++ b/solutions/69A.py @@ -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")