# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
843132 | mickey080929 | Longest Trip (IOI23_longesttrip) | C++17 | 13 ms | 1112 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 "longesttrip.h"
#include <bits/stdc++.h>
using namespace std;
int n;
vector<vector<int>> lines;
vector<int> chk;
vector<int> head;
bool ask(int u, int v) {
if (u == v) return true;
return are_connected({u}, {v});
}
int Get() {
for (int i=0; i<n; i++) {
if (!chk[i]) return i;
}
return -1;
}
int Get2() {
for (int i=0; i<n; i++) {
if (head[i]) return i;
}
return -1;
}
void make_groups() {
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... |