# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
172973 | LinusTorvaldsFan | Bigger segments (IZhO19_segments) | C++14 | 865 ms | 262148 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
struct Node{
pair<int,int>val;
ll l, r;
Node*left;
Node*right;
Node(ll _l, ll _r) {
val={0,0};
l=_l;
r=_r;
left=nullptr;
right=nullptr;
}
};
pair<int,int>get_val(Node *root){
if(root==nullptr)return make_pair(0,0);
return root->val;
}
void update(Node *root, ll p, int x, int y) {
if(root->l==p && root->r==p){
root->val=max(make_pair(x,y),root->val);
return;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |