Advertisement
Guest User

Untitled

a guest
Dec 11th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. #include <string>
  4. int main() {
  5. string str1, str2;
  6. cin>>str1>>str2;
  7. int f;
  8. if (str2.find(str1)!=-1) cout <<"YES";
  9.  
  10. else cout<<"NO";
  11. return 0;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement