From 52823fa22cc71ec77730df3544bc62b455bbc9d3 Mon Sep 17 00:00:00 2001 From: SaShaShady Date: Wed, 30 Oct 2019 17:24:33 +0530 Subject: [PATCH] Done --- 808.cxx | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 808.cxx diff --git a/808.cxx b/808.cxx new file mode 100644 index 0000000..ffdcec1 --- /dev/null +++ b/808.cxx @@ -0,0 +1,43 @@ +/* + * 69.cxx + * + * Copyright 2019 hp + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, + * MA 02110-1301, USA. + * + * + */ + + +#include +using namespace std; + +int main() +{ long long int n,i,temp,s=0,temp1,temp2,a=0,b=0; + cin >> n; + for(i=0;i> temp >> temp1 >> temp2; + s=s+temp; + a=a+temp1; + b=b+temp2; + } + if(s==0 && a==0 && b==0) + cout << "YES"; + else + cout << "NO"; + + return 0; +}