QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#428323#7281. How to Avoid Disqualification in 75 Easy StepsSmilingBraniac#10 1ms3840kbC++14422b2024-06-01 18:44:142024-06-01 18:44:16

Judging History

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

  • [2024-06-01 18:44:16]
  • 评测
  • 测评结果:10
  • 用时:1ms
  • 内存:3840kb
  • [2024-06-01 18:44:14]
  • 提交

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