# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
234473 | kshitij_sodani | 운세 보기 2 (JOI14_fortune_telling2) | C++17 | 513 ms | 115028 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef int64_t llo;
#define mp make_pair
#define pb push_back
#define a first
#define b second
llo n,k;
llo aa[200001];
llo bb[200001];
llo pp[200001];
vector<llo> tree2[1];
vector<pair<llo,llo>> tree[800001];
llo build2(llo no1,llo no,llo l,llo r){
if(l==r){
tree2[no1][no]=tree[no1][l].b;
}
else{
llo mid=(l+r)/2;
build2(no1,no*2+1,l,mid);
build2(no1,no*2+2,mid+1,r);
tree2[no1][no]=max(tree2[no1][no*2+1],tree2[no1][no*2+2]);
/*if(no1==0){
cout<<tree2[no][no]<<","<<l<<","<<r<<endl;
}*/
}
}
llo query3(llo no1,llo no,llo l,llo r,llo aa,llo bb){
컴파일 시 표준 에러 (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... |