# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
151225 | Bodo171 | 고대 책들 (IOI17_books) | C++14 | 2 ms | 376 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "books.h"
#include <iostream>
using namespace std;
const int nmax=1000*1000+5;
int st[nmax],dr[nmax],viz[nmax];
int n,to_l,to_r,l,r,i,x,l1,l2,r1,r2,oldl,oldr,steps_left,steps_right;
long long abss(long long x)
{
if(x<0) return -x;
return x;
}
void ext(int &L,int &R,int oldL,int oldR)
{
int nxtL,nxtR;
while(oldL!=L||oldR!=R)
{
nxtL=L;nxtR=R;
for(int it=oldL-1;it>=L;it--)
{
nxtL=min(nxtL,st[it]);
nxtR=max(nxtR,dr[it]);
}
for(int it=oldR+1;it<=R;it++)
{
nxtL=min(nxtL,st[it]);
nxtR=max(nxtR,dr[it]);
}
oldL=L;oldR=R;
L=nxtL;R=nxtR;
}
컴파일 시 표준 에러 (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... |