Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
88756 陈昊然 奇怪的国家 C++ Accepted 1 MS 276 KB 334 2024-08-21 11:05:08

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; char a[51],d[51]; int main(){ cin>>a>>d; int n=strlen(a),c=strlen(d); for(int i=0;i<=n-1;i++){ if(a[i]=='1'){ if(d[i]=='1'){ cout<<1; }else{ cout<<0; } }else{ if(d[i]=='1'){ cout<<0; }else{ cout<<1; } } } return 0; }