# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
154415 | arnold518 | Cake 3 (JOI19_cake3) | C++14 | 1334 ms | 202476 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int MAXN = 2e5;
struct Cake
{
int V, C;
bool operator < (const Cake &p) { return C<p.C; }
}A[MAXN+10];
int N, M, S;
ll ans=-1e18;
vector<int> comp;
int getcomp(int x) { return lower_bound(comp.begin(), comp.end(), x)-comp.begin(); }
struct Node
{
ll cnt, sum;
Node *lc, *rc;
Node() : cnt(0), sum(0), lc(NULL), rc(NULL) {}
};
Node *tree[MAXN+10];
void makeTree(Node *node, int tl, int tr)
{
컴파일 시 표준 에러 (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... |