QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#744753 | #9629. 小 C 的神秘图形 | Conan | WA | 1ms | 3636kb | C++14 | 285b | 2024-11-13 23:10:37 | 2024-11-13 23:10:39 |
Judging History
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