# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
38739 | daniel_02 | Monkey and Apple-trees (IZhO12_apple) | C++14 | 609 ms | 122328 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define ll long long
#define OK cout << "OK" << endl;
using namespace std;
const int N = 7e6 + 7e5;
const int inf = 1e9 + 7;
struct node
{
int sum, l, r,add;
node()
{
sum = l = r = add = 0;
}
}t[N];
int m;
int cnt = 2,c;
int ty, l, r,ans;
void push (int v,int tl,int tr) {
if (t[v].add != 0) {
if (!t[v].l)
t[v].l = cnt ++;
if (!t[v].r)
t[v].r = cnt ++;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |