Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- ios::sync_with_stdio(false);
- cin.tie(nullptr);
- string a, b;
- getline(cin , a);
- getline(cin , b);
- if(!b.compare(0, a.size() ,a)) cout << "Yes\n";
- else cout << "No\n";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement