Skip to content

Commit

Permalink
Added new question starters 26 section
Browse files Browse the repository at this point in the history
  • Loading branch information
KaranSiddhu committed Feb 19, 2022
1 parent 9f16975 commit c893049
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions CP Contests/CodeChef/Starters 26/5. Careless Chef/code.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define ld long double

void solution(){
int n;
cin >> n;
int sum = 0;
for(int i = 0; i < 2*n; i++){
int b;
cin >> b;
sum += b;
}

cout << ((sum % 2 == 0) ? "YES" : "NO" ) << "\n";

}

int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);

int t;
cin >> t;
while(t--)
solution();

return 0;
}

0 comments on commit c893049

Please sign in to comment.