# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
903956 | LaviniaTornaghi | Longest Trip (IOI23_longesttrip) | C++17 | 11 ms | 1384 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>
#include "longesttrip.h"
using namespace std;
struct XorList {
struct Node {
int val;
Node *x, *y;
Node(int val) : val(val), x(NULL), y(NULL) { }
} *start, *end;
void merge(XorList *o) {
if (end->x == NULL) {
end->x = o->start;
} else {
end->y = o->start;
}
if (o->start->x == NULL) {
o->start->x = end;
} else {
o->start->y = end;
}
end = o->end;
o->start = o->end = NULL;
}
vector<int> vectorize() {
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... |