QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#428341 | #7281. How to Avoid Disqualification in 75 Easy Steps | SmilingBraniac# | 5 | 1ms | 3884kb | C++14 | 881b | 2024-06-01 18:54:00 | 2024-06-01 18:54:01 |
answer
#include "avoid.h"
#include <vector>
using namespace std;
pair<int, int> scout(int r, int h) {
vector<int> v;
for (int j = 1; j <= 1000; ++j) v.push_back(j);
for (int i = 0; i < 10; ++i) {
vector<int> v2, v3;
for(int j : v) {
if ((j >> i) & 1) v2.push_back(j);
else v3.push_back(j);
}
send(v2);
if (wait()[0]) v = v2;
else v = v3;
}
int a = v[0];
v.clear();
for (int j = 1; j <= 1000; ++j)
if (j != a) v.push_back(j);
for (int i = 0; i < 10; ++i) {
vector<int> v2, v3;
for(int j : v) {
if ((j >> i) & 1) v2.push_back(j);
else v3.push_back(j);
}
send(v2);
if (wait()[0]) v = v2;
else v = v3;
}
if (v.empty()) return {a, a};
else return {a, v[0]};
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 1ms
memory: 3876kb
input:
output:
result:
wrong answer Not correct
Subtask #2:
score: 5
Accepted
Test #11:
score: 5
Accepted
time: 1ms
memory: 3808kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #12:
score: 5
Accepted
time: 1ms
memory: 3676kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #13:
score: 5
Accepted
time: 0ms
memory: 3680kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #14:
score: 5
Accepted
time: 1ms
memory: 3872kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #15:
score: 5
Accepted
time: 1ms
memory: 3636kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #16:
score: 5
Accepted
time: 1ms
memory: 3528kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #17:
score: 5
Accepted
time: 0ms
memory: 3612kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #18:
score: 5
Accepted
time: 0ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #19:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #20:
score: 5
Accepted
time: 1ms
memory: 3644kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #21:
score: 5
Accepted
time: 0ms
memory: 3644kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #22:
score: 5
Accepted
time: 1ms
memory: 3528kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #23:
score: 5
Accepted
time: 1ms
memory: 3692kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #24:
score: 5
Accepted
time: 0ms
memory: 3804kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #25:
score: 5
Accepted
time: 1ms
memory: 3572kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #26:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #27:
score: 5
Accepted
time: 1ms
memory: 3644kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #28:
score: 5
Accepted
time: 0ms
memory: 3636kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #29:
score: 5
Accepted
time: 1ms
memory: 3572kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #30:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #31:
score: 5
Accepted
time: 1ms
memory: 3884kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #32:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #33:
score: 5
Accepted
time: 1ms
memory: 3872kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #34:
score: 5
Accepted
time: 1ms
memory: 3580kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #35:
score: 5
Accepted
time: 1ms
memory: 3676kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #36:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #37:
score: 5
Accepted
time: 0ms
memory: 3608kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #38:
score: 5
Accepted
time: 1ms
memory: 3872kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #39:
score: 5
Accepted
time: 1ms
memory: 3868kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #40:
score: 5
Accepted
time: 1ms
memory: 3804kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #41:
score: 5
Accepted
time: 1ms
memory: 3636kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #42:
score: 5
Accepted
time: 1ms
memory: 3872kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #43:
score: 5
Accepted
time: 1ms
memory: 3584kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #44:
score: 5
Accepted
time: 1ms
memory: 3572kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #45:
score: 5
Accepted
time: 0ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #46:
score: 5
Accepted
time: 1ms
memory: 3588kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #47:
score: 5
Accepted
time: 0ms
memory: 3876kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #48:
score: 5
Accepted
time: 0ms
memory: 3612kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #49:
score: 5
Accepted
time: 1ms
memory: 3876kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #50:
score: 5
Accepted
time: 1ms
memory: 3588kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #51:
score: 5
Accepted
time: 1ms
memory: 3840kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #52:
score: 5
Accepted
time: 0ms
memory: 3572kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #53:
score: 5
Accepted
time: 1ms
memory: 3872kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #54:
score: 5
Accepted
time: 0ms
memory: 3572kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #55:
score: 5
Accepted
time: 1ms
memory: 3636kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #56:
score: 5
Accepted
time: 0ms
memory: 3672kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #57:
score: 5
Accepted
time: 1ms
memory: 3588kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #58:
score: 5
Accepted
time: 0ms
memory: 3844kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #59:
score: 5
Accepted
time: 1ms
memory: 3524kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #60:
score: 5
Accepted
time: 1ms
memory: 3808kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #61:
score: 5
Accepted
time: 1ms
memory: 3640kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #62:
score: 5
Accepted
time: 1ms
memory: 3632kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #63:
score: 5
Accepted
time: 0ms
memory: 3676kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #64:
score: 5
Accepted
time: 1ms
memory: 3564kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Test #65:
score: 5
Accepted
time: 1ms
memory: 3644kb
input:
\x14
output:
result:
ok Correct: 20 robot(s) used, 20 hour(s) passed
Subtask #3:
score: 0
Wrong Answer
Test #66:
score: 0
Wrong Answer
time: 1ms
memory: 3872kb
input:
\x1e
output:
result:
wrong answer Not correct
Subtask #4:
score: 0
Wrong Answer
Test #120:
score: 0
Wrong Answer
time: 1ms
memory: 3580kb
input:
K
output:
result:
wrong answer Not correct