Run ID:88561
提交时间:2024-08-19 12:09:40
#include<bits/stdc++.h> using namespace std; char c[1001],q[1001]; int b=-2e9,a,p; int main(){ cin>>c>>q; int n=strlen(c),d=strlen(q); if(n!=d){ cout<<"no"; return 0; } for(int i=0;i<=n-1;i++){ if(c[i]==q[i]){ }else{ cout<<"no"; return 0; } } cout<<"yes"; return 0; }