QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#65184 | #4675. Multiple Communications | T3alaadl3k2olyehymn3k# | 0 | 0ms | 0kb | C++20 | 978b | 2022-11-27 23:14:17 | 2023-02-04 00:38:32 |
Judging History
answer
#include "bits/stdc++.h"
using namespace std;
const int N = 100;
bitset<1000> a[N], b[N];
unordered_map<bitset<1000>, pair<int, int>> ans;
void input() {
string s;
cin >> s;
for (int i = 0; i < 100; i++) {
string t;
cin >> t;
bitset<1000> bs(t);
a[i] = bs;
}
cin >> s;
for (int i = 0; i < 100; i++) {
string t;
cin >> t;
bitset<1000> bs(t);
a[i] = bs;
}
for (int i = 0; i < 100; i++) {
for (int j = 0; j < 100; j++) {
ans[a[i] ^ b[j]] = {i + 1, j + 1};
}
}
cin >> s;
int Q;
cin >> Q;
while (Q--) {
string s;
cin >> s;
bitset<1000> bs(s);
pair<int, int> tmp = ans[bs];
cout << tmp.first << ' ' << tmp.second << endl;
}
}
int main() {
ios::sync_with_stdio(false);
cout.tie(nullptr);
cin.tie(nullptr);
input();
return 0;
}
詳細信息
Test #1:
score: 0
Instance #0 Time Limit Exceeded
First Run Input
Alice 111101001110010010001100100110111010100101011011100010101101001000010111100100110100000111101101111110010010000110000110111000111101010101011000000011011110000001000101110110101110010011110110110000100101110111000010010101010110011010001101100111001010100011001000100101100101010110000100001110...
First Run Output
Second Run Input
Second Run Output
Third Run Input
Third Run Output
Manager to Checker
WA Wrong Answer on First Run: the length of the output should be exactly 3000.