# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
629121 | urd05 | Rarest Insects (IOI22_insects) | C++17 | 0 ms | 0 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;
vector<int> v;
bool in[2000];
bool vis[2000];
int mnv;
int val;
int mi(int i) {
in[i]=true;
move_inside(v[i]);
}
int mo(int i) {
in[i]=false;
move_outside(v[i]);
}
int pb() {
return press_button();
}
void clean() {
for(int i=0;i<n;i++) {
if (in[i]) {
mo(i);
}
}