QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#428323 | #7281. How to Avoid Disqualification in 75 Easy Steps | SmilingBraniac# | 10 | 1ms | 3840kb | C++14 | 422b | 2024-06-01 18:44:14 | 2024-06-01 18:44:16 |
Judging History
answer
#include "avoid.h"
#include <vector>
using namespace std;
pair<int, int> scout(int r, int h) {
for (int i = 0; i < 10; ++i) {
vector<int> v;
for(int j = 1; j <= 1000; ++j)
if ((j >> i) & 1) v.push_back(j);
send(v);
}
vector<int> w = wait();
int ans;
for (int i = 0; i < 10; ++i) {
if (w[i]) ans += 1 << i;
}
return {ans, ans};
}
詳細信息
Subtask #1:
score: 10
Accepted
Test #1:
score: 10
Accepted
time: 1ms
memory: 3832kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #2:
score: 0
Accepted
time: 1ms
memory: 3640kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #3:
score: 0
Accepted
time: 1ms
memory: 3600kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #4:
score: 0
Accepted
time: 1ms
memory: 3576kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #5:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #6:
score: 0
Accepted
time: 1ms
memory: 3764kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #7:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #8:
score: 0
Accepted
time: 1ms
memory: 3584kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #9:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Test #10:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
output:
result:
ok Correct: 10 robot(s) used, 1 hour(s) passed
Subtask #2:
score: 0
Wrong Answer
Test #11:
score: 0
Wrong Answer
time: 1ms
memory: 3604kb
input:
\x14
output:
result:
wrong answer Not correct
Subtask #3:
score: 0
Wrong Answer
Test #66:
score: 0
Wrong Answer
time: 1ms
memory: 3540kb
input:
\x1e
output:
result:
wrong answer Not correct
Subtask #4:
score: 0
Wrong Answer
Test #120:
score: 0
Wrong Answer
time: 1ms
memory: 3612kb
input:
K
output:
result:
wrong answer Not correct