# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
41167 | sinhriv | Commuter Pass (JOI18_commuter_pass) | C++14 | 629 ms | 27312 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>
using namespace std;
const int NN = 200200;
int N, M;
int S, T, U, V;
int deg[NN];
long long fr[NN];
long long to[NN];
long long f[4][NN];
vector < int > dag[NN];
vector < pair < int, int > > e[NN];
bool minimize(long long &x, long long y){
if(x > y){
x = y;
return true;
}
return false;
}
void Dijkstra(int start, long long *d){
fill(d, d + N + 1, 1e18);
d[start] = 0;
vector < bool > done(N + 1, 0);
set < pair < long long, int > > heap;
heap.emplace(0, start);
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... |