QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744758#9629. 小 C 的神秘图形ConanWA 0ms3576kbC++14289b2024-11-13 23:12:102024-11-13 23:12:17

Judging History

你现在查看的是最新测评结果

  • [2024-11-13 23:12:17]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3576kb
  • [2024-11-13 23:12:10]
  • 提交

answer

#include<iostream>
using namespace std;
int main(){
int a;
cin>>a;
while(a--){
string m;
string n;
cin>>m>>n;
int len=m.length();
bool f=true;
for(int i=0;i<len;i++){
if(!(m[i]=='1'||n[i]=='1')){f=false;
break;}
}
if(f){cout<<1<<'\n';}
else{cout<<0<<'\n';}
}
return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3576kb

input:

96
122100012110202022211102020101110122101010001012220001000222210100222112111020002212000222012022
010112102102202201211121022102211110211010101020001021100101110202100010112221022001101222101102

output:

0
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1

result:

wrong output format Extra information in the output file