# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
947740 | biank | 드문 곤충 (IOI22_insects) | C++17 | 37 ms | 1872 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 <bits/stdc++.h>
using namespace std;
#define all(x) begin(x), end(x)
void move_inside(int i);
void move_outside(int i);
int press_button();
stack<int> in;
set<int> s;
int T;
bool check(int m, int &K) {
int oldK = K;
vector<int> v(all(s));
random_shuffle(all(v));
for (int i:v) {
move_inside(i);
if (press_button() <= m) {
in.push(i);
if (++K == m*T) {
while (!in.empty()) {
s.erase(in.top());
in.pop();
}
return true;
}
} else {
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |