Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- #include <string>
- int main() {
- string str1, str2;
- cin>>str1>>str2;
- int f;
- if (str2.find(str1)!=-1) cout <<"YES";
- else cout<<"NO";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement