# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
91630 | popovicirobert | Hard route (IZhO17_road) | C++14 | 1527 ms | 159608 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 lsb(x) (x & (-x))
#define ll long long
#define ull unsigned long long
#define ld long double
// 217
// 44
using namespace std;
const int MAXN = (int) 5e5;
vector <int> g[MAXN + 1];
pair <int, int> down[MAXN + 1], up[MAXN + 1];
pair <ll, ll> ans = {0, 1};
inline void update(pair <int, int> &a, pair <int, int> b) {
if(b.second == 0) {
return ;
}
if(a.first < b.first) {
a = b;
}
else if(a.first == b.first) {
a.second += b.second;
}
}
inline void update(pair <ll, ll> &a, pair <ll, ll> b) {
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |