4 solutions

  • 0
    @ 2025-8-21 14:17:32
    #include<bits/stdc++.h>
    using namespace std;
    string s,t; 
    int main(){
    	while(cin>>s>>t){
    		if(t.find(s)==0){
    			cout<<"No"<<endl;
    		}else{
    			cout<<"Yes"<<endl;
    		}
    	}
    
    
    	return 0;
    }
    
    

Information

ID
80
Time
1000ms
Memory
256MiB
Difficulty
3
Tags
(None)
# Submissions
49
Accepted
20
Uploaded By