QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#751095#9629. 小 C 的神秘图形M0RenWA 1ms3632kbC++23422b2024-11-15 17:05:002024-11-15 17:05:00

Judging History

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

  • [2024-11-15 17:05:00]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3632kb
  • [2024-11-15 17:05:00]
  • 提交

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