Run ID:81526

提交时间:2024-07-12 14:35:21

#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[151]==b[151]) { cout<<"yes"; } else { cout<<"no"; } return 0; }