Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <iomanip>
- #include <string>
- #include <cmath>
- using namespace std;
- int main() {
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- cout.tie(nullptr);
- int y;
- cin >> y >> y;
- string s1, s2;
- cin >> s1 >> s2;
- int x = 0;
- for (int i = 0; i < s1.length(); ++i) {
- if (s1.substr(i, y) == s2) x++;
- }
- cout << x;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement