Advertisement
Guest User

ksenija nemanjina mala

a guest
Feb 21st, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. void FastIO() {
  4. ios_base::sync_with_stdio(false);
  5. cin.tie(NULL);
  6. cout.tie(NULL);
  7. }
  8. int a,br, b;
  9. string x,y;
  10. int main() {
  11.  
  12. cin >> a >> x >> b >> y;
  13.  
  14. for (int i = 0; i < b; i++) {
  15. if (y.substr(i, a) == x) {
  16. br++;
  17. } }
  18.  
  19. cout << br;
  20. return 0; }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement