From a31f744f0745b6bf6ce5c8ef8039ef00ea8ff14e Mon Sep 17 00:00:00 2001 From: ShazidMahsrafi Date: Sat, 22 Jun 2024 00:19:11 +0600 Subject: [PATCH] update --- Codes/1703 B - ICPC Balloons/1703B.cpp | 34 ++ Codes/1978 A - Alice and Books/1978A.cpp | 32 ++ Codes/1978 B - New Bakery/1978B.cpp | 35 ++ Readme.md | 455 ++++++++++++----------- 4 files changed, 330 insertions(+), 226 deletions(-) create mode 100644 Codes/1703 B - ICPC Balloons/1703B.cpp create mode 100644 Codes/1978 A - Alice and Books/1978A.cpp create mode 100644 Codes/1978 B - New Bakery/1978B.cpp diff --git a/Codes/1703 B - ICPC Balloons/1703B.cpp b/Codes/1703 B - ICPC Balloons/1703B.cpp new file mode 100644 index 0000000..7251010 --- /dev/null +++ b/Codes/1703 B - ICPC Balloons/1703B.cpp @@ -0,0 +1,34 @@ +#include +using namespace std; +#define ll long long +#define endl '\n' +ll pow(ll x,ll y,ll m=1e9+7){ll ans=1;x%=m;while(y){if(y&1)ans=(ans*x)%m;x=(x*x)%m;y>>=1;}return ans;} + +void solve() +{ + int n; + string s; + vectorv(26,0); + cin>>n>>s; + int ans=0; + for(auto x:s) + { + if(v[x-'A']==0) + ans++; + v[x-'A']++; + ans++; + } + cout<> TCS; + for (int TC = 1; TC <= TCS; ++TC) + { + // cout<<"Case "< +using namespace std; +#define ll long long +#define endl '\n' +ll pow(ll x,ll y,ll m=1e9+7){ll ans=1;x%=m;while(y){if(y&1)ans=(ans*x)%m;x=(x*x)%m;y>>=1;}return ans;} + +void solve() +{ + int n; + cin>>n; + vectorv(n); + for(auto &i:v) cin>>i; + int ans=0; + for(int i=0; i> TCS; + for (int TC = 1; TC <= TCS; ++TC) + { + // cout<<"Case "< +using namespace std; +#define ll long long +#define endl '\n' +ll pow(ll x,ll y,ll m=1e9+7){ll ans=1;x%=m;while(y){if(y&1)ans=(ans*x)%m;x=(x*x)%m;y>>=1;}return ans;} + +void solve() +{ + ll n,a,b; + cin>>n>>a>>b; + if(a>b) + { + cout<> TCS; + for (int TC = 1; TC <= TCS; ++TC) + { + // cout<<"Case "<