From b677743e0eb236ea5bf00276831335f1a9073e3d Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 20 Jul 2023 02:20:48 +0600 Subject: [PATCH] initial commit --- 1343B Balanced Array/1343B.cpp | 48 ++++++++++++++++++++++++++++++++++ 705A Hulk/705A.cpp | 34 ++++++++++++++++++++++++ 2 files changed, 82 insertions(+) create mode 100644 1343B Balanced Array/1343B.cpp create mode 100644 705A Hulk/705A.cpp diff --git a/1343B Balanced Array/1343B.cpp b/1343B Balanced Array/1343B.cpp new file mode 100644 index 0000000..fb14b46 --- /dev/null +++ b/1343B Balanced Array/1343B.cpp @@ -0,0 +1,48 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n; + cin>>n; + vectorv; + if(n%4!=0) + cout<<"NO"<> TC; + cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file diff --git a/705A Hulk/705A.cpp b/705A Hulk/705A.cpp new file mode 100644 index 0000000..b59efca --- /dev/null +++ b/705A Hulk/705A.cpp @@ -0,0 +1,34 @@ +#include +using namespace std; +using ll = long long; + + +void solve() +{ + int n; + cin>>n; + string s1=" I hate that"; + string s2=" I love that"; + string s; + for(int i=1; i> TC; + //cin.ignore(); + while (TC--) solve(); +} \ No newline at end of file