# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
120253 | JustInCase | Synchronization (JOI13_synchronization) | C++17 | 275 ms | 12272 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>
const int32_t MAX_N = 1e5;
std::mt19937 mt(69);
struct Edge {
bool toggled;
int32_t x, y, w;
Edge() {}
Edge(int32_t _x, int32_t _y) : x(_x), y(_y), w(0), toggled(false) {}
};
struct Node {
bool rev;
int32_t sz, prior, sum, id;
Node *l, *r, *par, *pp;
Node() {}
Node(int32_t _id) : id(_id) {
sz = 1;
prior = mt();
sum = 1;
rev = false;
l = nullptr;
r = nullptr;
par = nullptr;
pp = nullptr;
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |