This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "avoid.h"
#include <bits/stdc++.h>
using namespace std;
std::pair<int, int> scout(int R, int H) {
for(int b = 0; b < 10; ++b) {
vector<int> curset;
for(int i = 1; i <= 1000; ++i) {
if(1 << b & i) {
curset.push_back(i);
}
}
send(curset);
}
vector<int> results = wait();
int ans = 0;
for(int b = 0; b < 10; ++b) {
if(results[b]) {
ans |= 1 << b;
}
}
return {ans, ans};
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |