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