# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
901981 | MuhammadSaram | 벽 (IOI14_wall) | C++17 | 3050 ms | 248448 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
const int M = 5e5, inf = 1e6;
int seg[2][M*4],k;
void modify(int ty,int p,int x,int v=1,int s=0,int e=k)
{
if (s+1==e)
{
seg[ty][v]=x;
return;
}
int mid=(s+e)/2,lc=v*2,rc=v*2+1;
if (p<mid)
modify(ty,p,x,lc,s,mid);
else
modify(ty,p,x,rc,mid,e);
if (ty)
seg[ty][v]=min(seg[ty][lc],seg[ty][rc]);
else
seg[ty][v]=max(seg[ty][lc],seg[ty][rc]);
}
int get(int ty,int l,int r,int v=1,int s=0,int e=k)
{
if (r<=s or e<=l)
return ty*inf;
컴파일 시 표준 에러 (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... |