From 9fd157bd8332c3486a9fffaa58277a856cd527d0 Mon Sep 17 00:00:00 2001 From: Shazid Mashrafi Date: Wed, 9 Aug 2023 00:43:01 +0600 Subject: [PATCH] initial commit --- 1857A Array Coloring/1857A.cpp | 57 +++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 1857A Array Coloring/1857A.cpp diff --git a/1857A Array Coloring/1857A.cpp b/1857A Array Coloring/1857A.cpp new file mode 100644 index 0000000..f564eb3 --- /dev/null +++ b/1857A Array Coloring/1857A.cpp @@ -0,0 +1,57 @@ +#include +using namespace std; + +#define ll long long +#define ul unsigned long long +#define pb push_back +#define ss second +#define ff first +#define fr(n) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>n; + int sum=0; + fr(n) + { + int x; + cin>>x; + sum+=x; + } + if(sum&1) + no; + else + yes; +} + +int main() +{ + fast_io; + int TC = 1; + cin >> TC; + while (TC--) solve(); +} \ No newline at end of file