# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
956461 | Darren0724 | Hedgehog Daniyar and Algorithms (IZhO19_sortbooks) | C++17 | 485 ms | 262144 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define LCBorz ios_base::sync_with_stdio(false); cin.tie(0);
#define all(x) x.begin(), x.end()
#define endl '\n'
const int N=1000005;
const int INF=1e9;
vector<int> t;
struct segtree{
struct seg{
vector<int> v;
int val=0;
}tr[N<<2];
seg merge(seg a,seg b){
seg ans;
ans.val=max(a.val,b.val);
auto &c=a.v,&d=b.v;
int ptr1=0,ptr2=0;
while(ptr1<c.size()&&ptr2<d.size()){
if(c[ptr1]<=d[ptr2]){
if(ptr2>0)ans.val=max(ans.val,c[ptr1]+d[ptr2-1]);
ans.v.push_back(c[ptr1++]);
}
else{
ans.v.push_back(d[ptr2++]);
}
}
while(ptr1<c.size()){
if(ptr2>0)ans.val=max(ans.val,c[ptr1]+d[ptr2-1]);
ans.v.push_back(c[ptr1++]);
컴파일 시 표준 에러 (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... |