# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
890719 | NotLinux | Hedgehog Daniyar and Algorithms (IZhO19_sortbooks) | C++17 | 2597 ms | 255228 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int N = (1 << 20) + 7;
const int inf = 2e9 + 7;
// bool debug_mode = 0;
inline int closest(vector < int > &v , int x){
auto it = lower_bound(v.begin() , v.end() , x);
if(it == v.begin()){
return -1;
}
else{
return *(--it);
}
}
struct MergeSortTree{
vector < int > tree[2*N];
int sz;
void merge(vector < int > &a , vector < int > &b , vector < int > &c){
int pa = 0 , pb = 0;
while(pa != (int)a.size() or pb != (int)b.size()){
if(pa == (int)a.size()){
c.push_back(b[pb++]);
}
else if(pb == (int)b.size()){
c.push_back(a[pa++]);
}
else{
if(a[pa] < b[pb]){
c.push_back(a[pa++]);
}
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |