Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
111249 | 殷佳雨萱 | 奇怪的国家 | C++ | Accepted | 1 MS | 276 KB | 317 | 2025-03-01 11:12:19 |
#include<bits/stdc++.h> using namespace std; int main() { string s1,s2; cin>>s1>>s2; int len=s1.size(); for(int i=0;i<len;i++){ if(s1[i]!=s2[i]){ cout<<'0'; } else if(s1[i]==s2[i] && s1[i]=='0'){ cout<<'1'; } else if(s1[i]==s2[i] && s1[i]=='1'){ cout<<'1'; } } return 0; }