이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#include "insects.h"
using namespace std;
void move_inside(int);
void move_outside(int);
int press_button();
int min_cardinality(int x) {
map<int,int>mp;
int ans=1e9,lst=1;
for(int i=0;i<x;i++){
for(int j=0;j<x;j++){
if(mp[j])continue;
move_inside(j);
int z=press_button();
if(z==lst){
lst++;
mp[j]=1;
}else{
move_outside(j);
}
}
ans=min(ans,lst);
lst=1;
}
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... |