Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Codeforces Round 69A
- #include <iostream>
- using namespace std;
- int main()
- {
- int n, x,y,z, sumx=0,sumy=0,sumz=0;
- cin >> n;
- for(int i = 0; i < n; i++)
- {
- cin >> x >> y >> z;
- sumx+=x;
- sumy+=y;
- sumz+=z;
- }
- if(sumx==0 && sumy==0 && sumz==0){cout<<"YES";}
- else{cout<<"NO";}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement