# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
45687 | Trans | Jakarta Skyscrapers (APIO15_skyscraper) | C++14 | 141 ms | 7156 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.
//https://oj.uz/problem/view/APIO15_skyscraper
#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = (a); i < (b); i++)
#define mp make_pair
#define fi first
#define se second
typedef pair<int, int> pii;
const int k = 200;
const int oo = 1e9 + 5;
const int maxn = 3e4 + 5;
int n, m, d[maxn], vs[maxn], ss, ee;
set<int> st[2][maxn];
int dij() {
priority_queue<pii> heap;
rep(i, 0, n) d[i] = oo;
d[ss] = 0;
heap.push(mp(0, ss));
while (!heap.empty()) {
pii cur = heap.top();
cur.fi *= -1;
if (cur.se == ee) return cur.fi;
// cout << "here " << cur.se << endl;
# | 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... |