diff --git a/Codes/1860A Not a Substring/1860A.cpp b/Codes/1860A Not a Substring/1860A.cpp new file mode 100644 index 0000000..637ce97 --- /dev/null +++ b/Codes/1860A Not a Substring/1860A.cpp @@ -0,0 +1,102 @@ +#include +using namespace std; + +// Short forms +#define int long long +#define ll long long +#define endl '\n' +#define ff first +#define ss second +#define pb push_back +#define all(x) x.begin(), x.end() +#define sz(x) (int)(x).size() + +// Outputs +#define yes cout<<"YES"< void _print(pair p); +template void _print(vector v);template void _print(set v); +template void _print(map v);template void _print(multiset v); +template void _print(pair p) {cerr << "{"; _print(p.first); cerr << ","; _print(p.second); cerr << "}";} +template void _print(vector v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(set v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(multiset v) {cerr << "[ "; for (T i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(unordered_set v) {cerr<<"[ "; for(T i : v) {_print(i); cerr<<" ";} cerr<<"]";} +template void _print(map v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(multimap v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} +template void _print(unordered_map v) {cerr << "[ "; for (auto i : v) {_print(i); cerr << " ";} cerr << "]";} + +///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// + +void solve() +{ + string s,t; + cin>>s; + int close=0, open=0, nested=0; + for(int i=1; i> TC; + while (TC--) + solve(); +} \ No newline at end of file diff --git a/Readme.md b/Readme.md index b70cec0..ca8c43d 100644 --- a/Readme.md +++ b/Readme.md @@ -159,6 +159,7 @@ This repository contains my solutions of Codeforces problems. They are in C++ la | 1857C | Assembly via Minimums | [Question](https://codeforces.com/problemset/problem/1857/C) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1857C%20Assembly%20via%20Minimums) | 1858A | Buttons | [Question](https://codeforces.com/problemset/problem/1858/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1858A%20Buttons) | 1859A | United We Stand | [Question](https://codeforces.com/problemset/problem/1859/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1859A%20United%20We%20Stand) +| 1860A | Not a Substring | [Question](https://codeforces.com/problemset/problem/1860/A) | [Solution] | 1862A | Gift Carpet | [Question](https://codeforces.com/problemset/problem/1862/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1862A%20Gift%20Carpet) | 1862B | Sequence Game | [Question](https://codeforces.com/problemset/problem/1862/B) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1862B%20Sequence%20Game) | 1863A | Channel | [Question](https://codeforces.com/problemset/problem/1863/A) | [Solution](https://github.com/ShazidMashrafi/Codeforces-Solutions/tree/master/Codes/1863A%20Channel)