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>
using namespace std;
int cnt[2050],mi=2050;
int min_cardinality(int N) {
int i,j;
for(i=0;i<N;i++){
move_inside(i);
for(j=0;j<N;j++){
if(j==i) continue;
move_inside(j);
if(press_button()==2) cnt[i]++;
move_outside(j);
}
move_outside(i);
mi=min(mi,cnt[i]);
}
return mi+1;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |