문제 주소: codeforces.com/problemset/problem/69/A
단순한 사칙연산 문제이다.
x = y = z = 0
for _ in range(int(input())):
a, b, c = map(int, input().split())
x += a; y += b; z += c
print("YES" if x == y == z == 0 else "NO")'Agorithm > Codeforces' 카테고리의 다른 글
| 96A-Football (0) | 2021.02.16 |
|---|---|
| 236A-Boy or Girl (0) | 2021.02.16 |
| 281A-Word Capitalization (0) | 2021.02.16 |
| 339A-Helpful Maths (0) | 2021.02.16 |
| 263A-Beautiful Matrix (0) | 2021.02.16 |