Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
102697 | 李禹宸 | 字符串相等判断 | C++ | Accepted | 1 MS | 276 KB | 337 | 2024-12-22 14:17:09 |
#include<bits/stdc++.h> using namespace std;//strcat(a,b) int main(){ char str1[1000],str2[1000]; cin>>str1>>str2; if(strlen(str1) == strlen(str1)){ for(int i=0;i<=strlen(str1);i++){ if(str1[i]!=str2[i]){ cout<<"no"; return 0; } } } else{ cout<<"no"; return 0; } cout<<"yes"; return 0; }