Run ID:102697
提交时间:2024-12-22 14:17:09
#include<bits/stdc++.h> using namespace std;//strcat(a,b) int main(){ char str1[1000],str2[1000]; cin>>str1>>str2; if(strlen(str1) == strlen(str1)){ for(int i=0;i<=strlen(str1);i++){ if(str1[i]!=str2[i]){ cout<<"no"; return 0; } } } else{ cout<<"no"; return 0; } cout<<"yes"; return 0; }