From 4fd5103dead9d9b9c85137e987e71f7293db7e88 Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Thu, 17 Aug 2023 11:13:52 +0600 Subject: [PATCH] initial commit --- 1196A Three Piles of Candies/1196A.cpp | 48 +++++++++++++++++ 313A Ilya and Bank Account/313A.cpp | 74 ++++++++++++++++++++++++++ 2 files changed, 122 insertions(+) create mode 100644 1196A Three Piles of Candies/1196A.cpp create mode 100644 313A Ilya and Bank Account/313A.cpp diff --git a/1196A Three Piles of Candies/1196A.cpp b/1196A Three Piles of Candies/1196A.cpp new file mode 100644 index 0000000..3e3d158 --- /dev/null +++ b/1196A Three Piles of Candies/1196A.cpp @@ -0,0 +1,48 @@ +#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(m) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>a>>b>>c; + ll ans=(a+b+c)/2; + cout<> TC; + while (TC--) solve(); +} \ No newline at end of file diff --git a/313A Ilya and Bank Account/313A.cpp b/313A Ilya and Bank Account/313A.cpp new file mode 100644 index 0000000..aeb1c09 --- /dev/null +++ b/313A Ilya and Bank Account/313A.cpp @@ -0,0 +1,74 @@ +#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(m) for(int i=0; i=0; i--) +#define nl '\n' +#define yes cout<<"YES"<>s; + if(s[0]!='-') + cout<s[sz]) + { + s.erase(sz-1,1); + if(s=="-0") + cout<<0<> TC; + while (TC--) solve(); +} \ No newline at end of file