This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
// protocol_violation/solution-subtask-1.cpp
#include "insects.h"
#include <bits/stdc++.h>
using namespace std;
int min_cardinality(int N) {
int ans = N;
for (int i = 0; i < N; i++) {
int cnt = 1;
move_inside(i);
for (int j = 0; j < N; j++) {
if (i != j) {
move_inside(j);
if (press_button() == 2) {
cnt++;
}
move_outside(j);
}
}
move_outside(i);
ans = min(ans,cnt);
}
return 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... |