Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
100131 郝王骏程 奇怪的国家 C++ Wrong Answer 0 MS 276 KB 497 2024-12-03 19:58:36

Tests(0/10):


Code:

#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ int c=0; char a[1000],b[1000]; cin>>a>>b; c=strlen(a); for(int i=0;i<=c;i++){ if(a[i]==b[i]){ cout<<"1"; }else{ cout<<"0"; } } return 0; }


Run Info:

------Input------
10110100100100010000 10101100010101011100
------Answer-----
11100111001110110011
------Your output-----
111001110011101100111