Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- void FastIO() {
- ios_base::sync_with_stdio(false);
- cin.tie(NULL);
- cout.tie(NULL);
- }
- int a,br, b;
- string x,y;
- int main() {
- cin >> a >> x >> b >> y;
- for (int i = 0; i < b; i++) {
- if (y.substr(i, a) == x) {
- br++;
- } }
- cout << br;
- return 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement