QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744753#9629. 小 C 的神秘图形ConanWA 1ms3636kbC++14285b2024-11-13 23:10:372024-11-13 23:10:39

Judging History

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

  • [2024-11-13 23:10:39]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3636kb
  • [2024-11-13 23:10:37]
  • 提交

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: 1ms
memory: 3636kb

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