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 "<