# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1173092 | ZeroCool | Building Bridges (CEOI17_building) | C++20 | 48 ms | 10168 KiB |
#include <bits/stdc++.h>
#define int long long
#define ll long long
#define ld long double
#define ar array
#define all(v) v.begin(), v.end()
using namespace std;
const int N = 1e5 + 20;
const int LOG = 30;
const int INF = 1e17;
struct Koce{
int m, b;
int operator()(int x){
return m * x + b;
}
};
Koce inf{(int)-1e12, (int)-1e17};
vector<Koce> s = {inf};
vector<int> le = {0};
vector<int> ri = {0};
int L(int x){
if(le[x])return le[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... |