# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
856318 | Cyanmond | Building Bridges (CEOI17_building) | C++17 | 57 ms | 10700 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define rep(i, l, r) for (int i = (l); i < (r); ++i)
#define per(i, l, r) for (int i = (r - 1); i >= l; --i)
#define ALL(x) (x).begin(), (x).end()
using i64 = long long;
struct CHT {
// naive
struct Line {
i64 a, b;
i64 eval(i64 x) {
return a * x + b;
}
};
int n, siz, lg;
vector<i64> xs;
vector<Line> data;
CHT(vector<i64> xs_) {
xs = xs_;
n = (int)xs.size();
lg = 0;
while ((1 << lg) < n) ++lg;
siz = 1 << lg;
while ((int)xs.size() < siz) xs.push_back(1ll << 30);
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |