Run ID:88756
提交时间:2024-08-21 11:05:08
#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; }