# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
245887 | Berted | Fireworks (APIO16_fireworks) | C++14 | 329 ms | 84424 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 <iostream>
#include <vector>
#include <algorithm>
#include <assert.h>
#include <queue>
#define pub push_back
#define ll long long
#define vi vector<ll>
#define pii pair<int, int>
#define fst first
#define snd second
#define vpi vector<pii>
using namespace std;
const ll MX = 1e15;
int n, m;
vector<vpi> adj;
ll dp[301][301] = {}, res = MX, prec[301] = {};
struct slopeDS
{
priority_queue<ll> pqL;
priority_queue<ll, vi, greater<ll>> pqR;
ll sft = 0, opt = 0;
slopeDS(int x)
{
pqL.push(0); pqL.push(x);
# | 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... |