Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2014
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. int testcases;
  2. scanf("%dn",&testcases);
  3. for(int a=0; a<testcases; a++) {
  4. int ch; //and some other stuff
  5. scanf("%dn",&ch);
  6. for(int b=0; b<ch; b++) {
  7. //mostly irrelevant, but getline is called
  8. }
  9. string such,findi;
  10. getline(cin,such);
  11. for(int b=0; b<such.size(); b++) {
  12. //appends chars to findi, irrelevant
  13. }
  14. getline(cin,such);
  15. int occur=findi.find(such);
  16. printf("%dn",occur);
  17. }
  18.  
  19. 3
  20. 3
  21. //irrelevant line 1
  22. //irrelevant line 2
  23. //irrelevant line 3
  24. abcd
  25. e
  26. 0
  27.  
  28.  
  29. 0
  30. a
  31. aaa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement