# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1079830 | _rain_ | Crocodile's Underground City (IOI11_crocodile) | C++14 | 338 ms | 54576 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>
using namespace std;
#define ll long long
#define fixbug false
//... READ INPUT
const int INF = 1e9 ;
const int maxn = 1e5;
const int maxm = 1e6;
vector<pair<int,int>> g[maxn+2];
ll d[maxn+2][2];
bool vis[maxn+2];
#define ii pair<ll,int>
#define fi first
#define se second
int travel_plan(int n , int m , int R[][2] , int L[] , int k , int P[]){
for (int i = 0; i < m; ++i) {
g[R[i][0]].push_back({R[i][1] , L[i]});
g[R[i][1]].push_back({R[i][0] , L[i]});
if (fixbug){
cout << R[i][0] << ' ' << R[i][1] << ' ' << L[i] << '\n';
}
}
priority_queue<ii,vector<ii>,greater<ii>> q;
for (int i = 0; i < n; ++i) d[i][0] = d[i][1] = INF;
ll ans = d[0][0];
for (int i = 0 ; i < k; ++i){
d[P[i]][0] = d[P[i]][1] = 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... |