Run ID:81529

提交时间:2024-07-12 14:36:34

#include<bits/stdc++.h> using namespace std; int main() { char a[151],b[151]; int f_1,f_2; cin>>a>>b; f_1 = f_2 = 0; for(int i=0; i<151; i++) { if(a[i]!='\0') { f_1++; } else { break; } } for(int i=0; i<151; i++) { if(b[i]!='\0') { f_2++; } else { break; } } if(a!=b) { cout<<"no"; } else { cout<<"yes"; } return 0; }