# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1127263 | Kerim | Editor (BOI15_edi) | C++20 | 3070 ms | 8320 KiB |
// O(n^2)
#include <cstdio>
#include <vector>
using namespace std;
struct op {
int poz;
int wsk;
bool aktyw;
op(int edy) {
if (edy < 0)
poz = -edy;
else
wsk = edy, poz = 0;
aktyw = false;
}
};
vector<op> oper;
void dezaktywuj(int x) {
int i = 0;
while (1){
if (i)
oper[x].aktyw = true;
else
oper[x].aktyw = false;
if (oper[x].poz > 0)
x = oper[x].wsk;
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |