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 "Anna.h"
#include <vector>
namespace {
int N, L, R, A[1000];
int count;
} // namespace
void InitA(int N, int L, int R) {
::N = N;
::L = L;
::R = R;
}
void ReceiveA(bool x) {
if (x) A[count / 10] |= 1 << (count % 10);
count++;
}
int Answer() {
int i = L;
for (int j = i + 1; j <= R; j++) if (A[j] < A[i]) i = j;
return i;
}
#include "Bruno.h"
#include <vector>
namespace {
int N;
} // namespace
void InitB(int N, std::vector<int> P) {
::N = N;
for (int i = 0; i < N; i++) for (int j = 0; j < 10; j++) SendB(P[i] >> j & 1);
}
void ReceiveB(bool y) {
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |