| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1334774 | yc11 | Rarest Insects (IOI22_insects) | C++20 | 52 ms | 412 KiB |
#include "insects.h"
#include<bits/stdc++.h>
using namespace std;
int min_cardinality(int N) {
int ans = N;
vector<int> n1;
n1.assign(N,0);
for (int i = 0;i<N;i++){
int c = 1;
vector<int> c2;
c2.push_back(i);
move_inside(i);
if (n1[i]!=0) continue;
for (int j = i+1;j<N;j++){
move_inside(j);
int c1 = press_button();
if (c1==c+1){
c++;
n1[j] = 1;
c2.push_back(i);
}
else move_outside(j);
}
for (int j = 0;j<c2.size();j++) move_outside(c2[j]);
ans = min(ans,c);
}
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... | ||||
