Skip to content

Commit 1b7fd06

Browse files
authored
69A
1 parent b833872 commit 1b7fd06

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Physist.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#include <iostream>
2+
using namespace std;
3+
int main()
4+
{
5+
int n, x, y, z, xsum(0), ysum(0), zsum(0);
6+
cin >> n;
7+
while (n--)
8+
{
9+
cin >> x >> y >> z;
10+
xsum += x;
11+
ysum += y;
12+
zsum += z;
13+
}
14+
if (xsum == 0 && ysum == 0 && zsum == 0)
15+
{
16+
cout << "YES" << endl;
17+
}
18+
else
19+
{
20+
cout << "NO" << endl;
21+
}
22+
return 0;
23+
}

0 commit comments

Comments
 (0)