From 0e75028455a7a38c416ba436a945dff14d4b6b50 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 3 Aug 2023 02:43:03 +0600 Subject: [PATCH] initial commit --- 1850A To My Critics/1850A.cpp | 29 +++++++++++++++++++++++ 1851B Parity Sort/1851B.cpp | 44 +++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 1850A To My Critics/1850A.cpp create mode 100644 1851B Parity Sort/1851B.cpp diff --git a/1850A To My Critics/1850A.cpp b/1850A To My Critics/1850A.cpp new file mode 100644 index 0000000..224b516 --- /dev/null +++ b/1850A To My Critics/1850A.cpp @@ -0,0 +1,29 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int a,b,c; + cin>>a>>b>>c; + if(a+b>=10) + cout<<"YES"<=10) + cout<<"YES"<=10) + cout<<"YES"<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/1851B Parity Sort/1851B.cpp b/1851B Parity Sort/1851B.cpp new file mode 100644 index 0000000..7ba5f2f --- /dev/null +++ b/1851B Parity Sort/1851B.cpp @@ -0,0 +1,44 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n; + cin>>n; + vectorv(n); + for(int i=0; i>v[i]; + vectorv2; + v2=v; + sort(v2.begin(),v2.end()); + bool possible=1; + for(int i=0; i> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file