# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1071693 | quanquai | Building Bridges (CEOI17_building) | C++17 | 43 ms | 3676 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.
/**
* author: anonymouse
* created: 23.08.2024 15:52:54
**/
#include <bits/stdc++.h>
#define int long long
using namespace std;
struct Line {
long long a, b;
Line() : a(0), b(0) {}
Line(long long _a, long long _b) : a(_a), b(_b) {}
long long eval(long long x) {
return a * x + b;
}
};
struct LiChaoTree {
int l, r, mid;
Line func;
LiChaoTree* left = NULL;
LiChaoTree* right = NULL;
LiChaoTree(int _l, int _r) {
l = _l;
r = _r;
mid = (l + r) / 2;
func = {0, (long long) 1e18};
}
void extend(int t, int _lo, int _hi) {
if (t == 0) {
if (left != NULL) return;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |