#include "avoid.h"
#include <bits/stdc++.h>
using namespace std;
std::pair<int, int> scout(int R, int H) {
for(int i=0; i<10; i++) {
vector<int> T;
for(int j=1; j<=1000; j++) if(j&(1<<i)) T.push_back(j);
send(T);
}
vector<int> T=wait();
int ret=0;
for(int i=0; i<10; i++) ret+=T[i]<<i;
return {ret, ret};
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Not correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
2 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
3 |
Correct |
1 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
4 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
5 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
6 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
7 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
8 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
9 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
10 |
Correct |
0 ms |
344 KB |
Correct: 10 robot(s) used, 1 hour(s) passed |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Not correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Not correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
1 ms |
344 KB |
Not correct |
2 |
Halted |
0 ms |
0 KB |
- |