Created
October 5, 2022 14:00
-
-
Save thuycom205/e29f1fd9e4efd32ff999ce4b67fc4ed7 to your computer and use it in GitHub Desktop.
timxau
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <bits/stdc++.h> | |
using namespace std; | |
string s, x; | |
void giai() { | |
int d = 0; | |
while (s.find(x) != -1) { | |
int k = s.find(x); | |
d++; | |
s.replace(0, k + x.size(), ""); | |
} | |
cout << d; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment