# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
46582 | aome | Jakarta Skyscrapers (APIO15_skyscraper) | C++17 | 852 ms | 38268 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 N = 30005;
const int B = 205;
const int INF = 0x3f3f3f3f;
int n, m;
int b[N], p[N];
int f[N][B];
vector<int> vec[N];
struct State {
int w, x, y;
State (int w, int x, int y) : w(w), x(x), y(y) {}
bool operator < (const State& rhs) const {
return w > rhs.w;
}
};
int solve() {
memset(f, INF, sizeof f);
priority_queue<State> pq;
pq.push(State(0, b[0], 0));
f[b[0]][0] = 0;
while (pq.size()) {
State u = pq.top(); pq.pop();
# | 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... |