| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 62673 | 邓昊源 | 字符串相等判断 | C++ | Wrong Answer | 1 MS | 276 KB | 348 | 2023-12-24 17:35:11 |
#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"; } for(int i = 0; i < n; i++) { if(a[i]==b[i]) { sum++; } } if(sum==n) { cout << "yes"; }else{ cout << "no"; } return 0; }
------Input------
qwiudgiudkugkiudbkasgdwefsdfw qweqwdiusjdhiuefhewiuddhdiuewd
------Answer-----
no
------Your output-----
nono