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