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 "insects.h"
#include <bits/stdc++.h>
#define ll long long
#define ull unsigned ll
#define pii pair<int, int>
#define piii pair<int, pii>
#define pb push_back
#define all(v) v.begin(), v.end()
#define size(v) v.size()
#define f first
#define s second
using namespace std;
int min_cardinality(int N) {
int Min = 1;
for(int i = 0; i < N; ++i){
move_inside(i);
int cnt = 1;
for(int j = 0; j < N; ++j){
if(j != i){
move_inside(j);
int k = press_button();
if(k != cnt){
cnt++;
}
move_outside(j);
}
}
move_outside(i);
Min = min(Min, cnt);
}
return Min;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |