# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
762155 | fdnfksd | 벽 (IOI14_wall) | C++14 | 612 ms | 162364 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#include "wall.h"
using namespace std;
using ll = int;
#define vi vector<int>
const ll maxN=5e5+10;
struct node
{
ll x,y;
node operator+(const node &o)
{
node ans;
ans.x=max(x,o.x);
ans.y=min(y,o.y);
ans.x=min(ans.x,o.y);
ans.y=max(ans.y,o.x);
return ans;
}
}st[4*maxN];
void update(ll pos,ll i,ll j,ll id,ll l,ll r)
{
if(l==r)
{
st[id].x=i;
st[id].y=j;
return;
}
ll mid=l+r>>1;
if(pos<=mid) update(pos,i,j,id*2,l,mid);
else update(pos,i,j,id*2+1,mid+1,r);
컴파일 시 표준 에러 (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... |