# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
649866 | alvinpiter | Harbingers (CEOI09_harbingers) | C++17 | 260 ms | 18280 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.
/*
5
1 2 20
2 3 12
2 4 1
4 5 3
26 9
1 10
500 2
2 30
*/
#include<bits/stdc++.h>
using namespace std;
#define LL long long int
#define MAXN 100000
struct Line {
LL m, c;
Line() {}
Line(LL m_, LL c_): m(m_), c(c_) {}
};
int N, prepTime[MAXN + 3], pace[MAXN + 3];
vector<pair<int, int> > adj[MAXN + 3];
LL depth[MAXN + 3], dp[MAXN + 3];
Line lineContainer[MAXN + 3];
int lineContainerSize = 0;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |