Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
118517 | 李昊宇 | 奇怪的国家 | C++ | Accepted | 1 MS | 272 KB | 285 | 2025-05-04 14:46:38 |
#include<bits/stdc++.h> using namespace std; char a[51],b[51]; int main(){ cin>>a>>b; int bl = strlen(b); int al = strlen(a); for(int i=0;i<=al-1;i++){ if(a[i]==b[i]){ cout<<"1"; } else if(a[i]!=b[i]){ cout<<"0"; } } return 0; }