| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62677 | 邓昊源 | 字符串相等判断 | C++ | Accepted | 2 MS | 276 KB | 359 | 2023-12-24 17:36:04 |
#include<bits/stdc++.h> using namespace std; int main() { int sum = 0; char a[1001],b[1001]; cin >> a >> b; int n = strlen(a); int m = strlen(b); if(n!=m) { cout << "no"; }else{ for(int i = 0; i < n; i++) { if(a[i]==b[i]) { sum++; } } if(sum==n) { cout << "yes"; }else{ cout << "no"; } } return 0; }