# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
498777 | gs18103 | 주유소 (KOI16_gas) | C++17 | 143 ms | 65540 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>
#define fi first
#define se second
#define eb emplace_back
#define em emplace
#define all(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
const int MAX = 3030;
const int INF = 1e9;
const ll LINF = 1e18;
ll c[MAX];
int n, m;
vector <pair <int, ll> > g[MAX], ng[MAX];
void djikstra(int v) {
vector <ll> d(MAX);
vector <bool> chk(MAX);
for(int i = 1; i <= n; i++) {
d[i] = LINF;
}
d[v] = 0;
priority_queue <pll, vector <pll>, greater <pll> > pq;
pq.em(0, v);
while(!pq.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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |