# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
153380 | fedoseevtimofey | Cake 3 (JOI19_cake3) | C++14 | 1267 ms | 107664 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
const int N = 2e5 + 7;
const ll Inf = 5e18;
struct Node {
ll sum;
int cnt, L, R;
Node(int val) {
sum = val;
cnt = 1;
L = R = -1;
}
Node(ll sum, int cnt) : sum(sum), cnt(cnt), L(-1), R(-1) {}
Node(ll sum, int cnt, int L, int R) : sum(sum), cnt(cnt), L(L), R(R) {}
Node() : sum(0), cnt(0), L(-1), R(-1) {}
};
vector <Node> t;
int build(int l, int r) {
if (l == r) {
t.push_back(Node());
return (int)t.size() - 1;
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |