# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1074999 | 42kangaroo | Highway Tolls (IOI18_highway) | C++17 | 172 ms | 17292 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.
//
// Created by 42kangaroo on 25/08/2024.
//
#include "bits/stdc++.h"
#include "highway.h"
using ll = long long;
using namespace std;
struct Ed {
int to, i;
};
using g_t = vector<vector<Ed>>;
struct BfsVal {
int to, i, d;
};
bool operator<(const BfsVal &l, const BfsVal &r) {
return l.d < r.d;
}
void addDfs(int n, int p, g_t &g, vector<int> &dis, vector<BfsVal> &out) {
for (auto e: g[n]) {
if (e.to == p) continue;
out.push_back({e.to, e.i, dis[e.to]});
addDfs(e.to, n, g, dis, out);
}
}
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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |