Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
62536 何睿哲 字符串相等判断 C++ Wrong Answer 1 MS 276 KB 324 2023-12-24 11:43:05

Tests(0/10):


Code:

#include<iostream> #include<cstring> using namespace std; int main() { char a[1000],b[1000]; scanf("%s %s",a,b); int n=strlen(a),m=strlen(b),flag=0; if(n==m) { for(int i=0; i<1000; i++) { if(a[i]!=b[i]) { flag=1; } } } if(flag==0){ cout<<"yes"; }else{ cout<<"no"; } return 0; }


Run Info:

------Input------
9KKt2LEjCIM5UVUI3oG4gMD8 9KKt2LEjCIM5UVUI3oG4gMD8
------Answer-----
yes
------Your output-----
no