| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 726643 | vjudge1 | Rarest Insects (IOI22_insects) | C++17 | 403 ms | 412 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "insects.h"
#include <bits/stdc++.h>
using namespace std;
int min_cardinality(int N) {
int Min = -1;
map<int , int> cnts;
for(int i=0 ; i<N ; i++){
int cnt = 1;
move_inside(i);
vector<int> now;
now.push_back(i);
for(int j=0 ; j<N ; j++){
if(i != j){
move_inside(j);
int cnt1 = press_button();
if(cnt1 > cnt){
cnt = cnt1;
now.push_back(j);
}
else{
move_outside(j);
}
}
}
cnts[i] = cnt;
for(int j=0 ; j<now.size() ; j++){
move_outside(now[j]);
}
}
for(auto [x , y] : cnts){
Min = min(Min , y);
if(Min == -1){
Min = y;
}
}
return Min;
}
컴파일 시 표준 에러 (stderr) 메시지
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
| # | Verdict | Execution time | Memory | Grader output |
|---|---|---|---|---|
| Fetching results... | ||||
