# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
1005392 | Unforgettablepl | 별자리 3 (JOI20_constellation3) | C++17 | 1564 ms | 49820 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// #pragma GCC optimize("O3")
#include <bits/stdc++.h>
using namespace std;
#define int long long
struct segtree{
vector<pair<int,int>> tree;
segtree():tree(524288){}
void update(int k,int x){
k+=262144;
tree[k] = {x,k-262144};
while(k/=2){
tree[k]=max(tree[2*k],tree[2*k+1]);
}
}
int get(int l,int r){
l+=262144;r+=262144;
pair<int,int> ans = {0,0};
while(l<=r){
if(l&1)ans=max(ans,tree[l++]);
if(r%2==0)ans=max(ans,tree[r--]);
l/=2;r/=2;
}
return ans.second;
}
};
pair<int,int> adj[200001];
int tree[200001];
컴파일 시 표준 에러 (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... |