Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88752 倪士燊 字符串相等判断 C++ Accepted 1 MS 272 KB 405 2024-08-21 10:51:19

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char s1[1001]; char s2[1001]; int main(){ cin >> s1; cin >> s2; int la = strlen(s1); int lb = strlen(s2); if(la != lb) { cout << "no"; } else{ for(int i = 0;i<=la-1;i++) { if(s1[i] != s2[i]) { cout << "no"; return 0; } } cout << "yes"; } return 0; }