# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
836443 | SamAnd | Rarest Insects (IOI22_insects) | C++17 | 126 ms | 484 KiB |
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;
#define fi first
#define se second
#define m_p make_pair
#define all(x) (x).begin(),(x).end()
#define sz(x) ((int)(x).size())
typedef long long ll;
const int N = 2003;
vector<int> q[N];
int min_cardinality(int N)
{
vector<int> v;
vector<int> b;
for (int i = 0; i < N; ++i)
{
move_inside(i);
if (press_button() == 1)
{
v.push_back(i);
}
else
{
move_outside(i);
b.push_back(i);
}
}
for (int i = 0; i < sz(v); ++i)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |