| # | Time | Username | Problem | Language | Result | Execution time | Memory |
|---|---|---|---|---|---|---|---|
| 1334736 | yc11 | Rarest Insects (IOI22_insects) | C++20 | 45 ms | 416 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;
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;
}
else move_outside(j);
}
for (int j = 0;j<N;j++) move_outside(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... | ||||
