# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
68620 | Vahan | 벽 (IOI14_wall) | C++17 | 1326 ms | 186700 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "wall.h"
#include<algorithm>
using namespace std;
pair<int,int> t[17000000];
void update(int l,int r,int L,int R,int v,int a,int b)
{
if(l>r)
return;
if(l==L && r==R)
{
if(b==1)
{
t[v].first=max(a,t[v].first);
t[v].second=max(a,t[v].second);
}
if(b==2)
{
t[v].first=min(a,t[v].first);
t[v].second=min(a,t[v].second);
}
}
else
{
t[2*v].first=min(max(t[2*v].first,t[v].first),t[v].second);
t[2*v].second=min(max(t[2*v].second,t[v].first),t[v].second);
t[2*v+1].first=min(max(t[2*v+1].first,t[v].first),t[v].second);
t[2*v+1].second=min(max(t[2*v+1].second,t[v].first),t[v].second);
t[v].first=0;
t[v].second=1e5+10;
int mid=(L+R)/2;
컴파일 시 표준 에러 (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... |