Changed the folder structure of codeforces problemsets
This commit is contained in:
29
codeforces/problemsets/youngPhysicist/a.cpp
Normal file
29
codeforces/problemsets/youngPhysicist/a.cpp
Normal file
@@ -0,0 +1,29 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
|
||||
int main(){
|
||||
ios::sync_with_stdio(0);
|
||||
cin.tie(0);
|
||||
|
||||
int n, a, b, c, x = 0, y = 0, z = 0;
|
||||
cin >> n;
|
||||
|
||||
for(int i = 0; i < n; ++i){
|
||||
cin >> a >> b >> c;
|
||||
x += a;
|
||||
y += b;
|
||||
z += c;
|
||||
}
|
||||
|
||||
if(x == 0 && y == 0 && z == 0){
|
||||
cout << "YES";
|
||||
} else{
|
||||
cout << "NO";
|
||||
}
|
||||
|
||||
cout << flush;
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user