# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
853993 | FairyWinx | Longest Trip (IOI23_longesttrip) | C++17 | 10 ms | 968 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>
#ifndef LOCAL
#include "longesttrip.h"
#endif
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
using namespace std;
#ifdef LOCAL
vector<vector<int>> G_secret;
int n;
int count_query = 0;
bool are_connected(vector<int> a, vector<int> b) {
++count_query;
for (int i : a) {
for (int j : b) {
if (G_secret[i][j])
return true;
}
}
return false;
}
#endif
struct dsu {
vector<int> p;
# | 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... |