# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
37729 | 14kg | 원숭이와 사과 나무 (IZhO12_apple) | C++11 | 73 ms | 1112 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <stdio.h>
#include <algorithm>
#define NN 1073741824
#define min2(x,y) (x<y?x:y)
#define max2(x,y) (x>y?x:y)
using namespace std;
struct TREE {
int num;
bool check;
TREE *left, *right;
} *top;
void check_node(TREE *node, int len) {
if (node->left == NULL) {
node->left = (TREE*)malloc(sizeof(TREE));
node->left->left = node->left->right = NULL;
node->left->num = node->check ? len : 0;
node->left->check = node->check;
}
if (node->right == NULL) {
node->right = (TREE*)malloc(sizeof(TREE));
node->right->left = node->right->right = NULL;
node->right->num = node->check ? len : 0;
node->right->check = node->check;
}
}
int f(TREE *node, int l, int r, int x, int y) {
int mid = (l + r) / 2;
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |