QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#751095 | #9629. 小 C 的神秘图形 | M0Ren | WA | 1ms | 3632kb | C++23 | 422b | 2024-11-15 17:05:00 | 2024-11-15 17:05:00 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
void solve() {
string a, b;
cin >> a >> b;
for(int i = 0; i < a.size(); i++) {
if(a[i] != '1' && b[i] != '1') {
cout << 0 << endl;
break;
}
}
cout << 1 << endl;
return;
}
int main() {
cin.tie(0)->sync_with_stdio(0);
int t;
cin >> t;
while(t--) solve();
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3632kb
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 1
result:
wrong output format Extra information in the output file