# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
623661 | valerikk | Escape Route (JOI21_escape_route) | C++17 | 2016 ms | 145320 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 "escape_route.h"
#include <algorithm>
#include <cassert>
#include <limits>
static const long long INF = 1e18;
static const int MAX_N = 61;
static const int MAX_M = 1771;
std::vector<long long> calculate_necessary_time(
int N, int M, long long S, int Q, std::vector<int> A, std::vector<int> B,
std::vector<long long> L, std::vector<long long> C, std::vector<int> U,
std::vector<int> V, std::vector<long long> T) {
std::vector<long long> answer(Q, INF);
std::vector<std::vector<long long>> dists0(N);
for (int start = 0; start < N; ++start) {
std::vector<std::vector<long long>> l(N, std::vector<long long>(N, -1));
std::vector<std::vector<long long>> c(N, std::vector<long long>(N, -1));
for (int i = 0; i < M; ++i) {
l[A[i]][B[i]] = l[B[i]][A[i]] = L[i];
c[A[i]][B[i]] = c[B[i]][A[i]] = C[i];
}
std::vector<long long> dist(N, INF);
std::vector<bool> used(N, false);
dist[start] = 0;
for (int it = 0; it < N; ++it) {
int u = -1;
# | 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... |