# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
753718 | nicksms | Crocodile's Underground City (IOI11_crocodile) | C++17 | 1376 ms | 99980 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.
/**
* Author: Nicholas Winschel
* Created: 05.09.2023 19:37:01
**/
#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using db=long double;
template<class T> using V=vector<T>;
using vi = V<int>;
using vl = V<ll>;
using pi = pair<int,int>;
using pl = pair<ll, ll>;
#define f first
#define s second
#define sz(x) (int)((x).size())
int travel_plan(int N, int M, int R[][2], int L[], int K, int P[]) {
V<multiset<ll>> ts(N);
priority_queue<pl, V<pl>, greater<pl>> h;
V<bool> vis(N);
V<ll> best(N);
V<V<pi>> adj(N);
for (int i = 0; i < M; i++) {
adj[R[i][0]].emplace_back(R[i][1], i);
adj[R[i][1]].emplace_back(R[i][0], i);
}
for (int i = 0; i < K; i++) {
ts[P[i]].insert(0); ts[P[i]].insert(0);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |