Skip to content

Instantly share code, notes, and snippets.

@thuycom205
Created October 5, 2022 14:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thuycom205/e29f1fd9e4efd32ff999ce4b67fc4ed7 to your computer and use it in GitHub Desktop.
Save thuycom205/e29f1fd9e4efd32ff999ce4b67fc4ed7 to your computer and use it in GitHub Desktop.
timxau
#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