# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
306251 | colazcy | Deda (COCI17_deda) | C++17 | 157 ms | 6904 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <cstdio>
#include <algorithm>
using namespace std;
const int maxn = 2e5 + 100;
int n,q;
char com[4];
namespace st{
#define ls (rt << 1)
#define rs (rt << 1 | 1)
int mi[maxn << 2];
inline void pushup(int rt){
mi[rt] = min(mi[ls],mi[rs]);
}
inline void build(int a = 1,int b = n,int rt = 1){
if(a == b){
mi[rt] = 0x7fffffff;
return;
}
int mid = (a + b) >> 1;
build(a,mid,ls);
build(mid + 1,b,rs);
pushup(rt);
}
inline void modify(int pos,int v,int l = 1,int r = n,int rt = 1){
if(l == r){
mi[rt] = v;
return;
}
int mid = (l + r) >> 1;
if(pos <= mid)modify(pos,v,l,mid,ls);
컴파일 시 표준 에러 (stderr) 메시지
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |