Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
100119 | 郝王骏程 | 字符串相等判断 | C++ | Wrong Answer | 1 MS | 280 KB | 310 | 2024-12-02 20:37:23 |
#include<iostream> #include<cstring> using namespace std; int main(){ int n,x,i=0; char a[1000],b[1000]; cin>>a>>b; while(a[i]=='\0'){ n+=1; } while(b[i]=='\0'){ x+=1; } if(n==x) cout<<"yes"; else cout<<"no"; return 0; }
------Input------
K4p162FM6v64lze81Ib9bau8kSPE86E6GQWofvjJ4SP8i00dr4EiES410zq6gxkeDd K4p162FM6v64lze81Ib9bau8kSPE86E6GQWofvjJ4SP8i00dr4EiES410zq0gxkeDd
------Answer-----
no
------Your output-----
yes