# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
214141 | rapture | Crocodile's Underground City (IOI11_crocodile) | C++14 | 821 ms | 87212 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 "crocodile.h"
#include <bits/stdc++.h>
#define ll long long
#define INF 1e+18
#define pb push_back
using namespace std;
struct edge{ ll to,cost; };
typedef pair<int,int> P;
ll n,m,d1[100010],d2[100010];
vector<edge> G[100010];
int travel_plan(int N, int M, int R[][2], int L[], int K, int Q[]){
n = N,m = M;
for(int i = 0;i < n;i++){
d1[i] = INF;
d2[i] = INF;
}
for(int i = 0;i < m;i++){
G[R[i][0]].pb({R[i][1],L[i]});
G[R[i][1]].pb({R[i][0],L[i]});
}
priority_queue<P,vector<P>,greater<P>> que;
for(int i = 0;i < K;i++){
d1[Q[i]] = 0;
d2[Q[i]] = 0;
que.push(P(0,Q[i]));
}
while(!que.empty()){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |