Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
88769 | 倪士燊 | 奇怪的国家 | C++ | Wrong Answer | 0 MS | 264 KB | 287 | 2024-08-21 11:35:44 |
#include<bits/stdc++.h> using namespace std; char s1[50]; char s2[50]; int n; int main(){ cin >> s1 >>s2; for(int i=0;i<=n-1;i++){ if(s1[i]==s2[i]) { cout << "1"; } if(s1[i]!=s2[i]){ cout << "0"; } } return 0; }
------Input------
10110100100100010000 10101100010101011100
------Answer-----
11100111001110110011
------Your output-----