# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
252457 | Saboon | 새 집 (APIO18_new_home) | C++14 | 2652 ms | 179308 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 3e5 + 20;
const int inf = 1e9;
set<pair<int,int>> tindex[maxn];
int ans[maxn];
vector<int> cmp;
multiset<int> seg[8*maxn];
int mxm[8*maxn], mnm[8*maxn];
pair<int,int> get2(int id, int L, int R, int idx){
if (R <= idx or idx < L)
return {inf, 0};
if (L + 1 == R)
return {mnm[id], mxm[id]};
pair<int,int> ret = {mnm[id], mxm[id]};
int mid = (L + R) >> 1;
auto it1 = get2(2*id+0, L, mid, idx);
auto it2 = get2(2*id+1, mid, R, idx);
ret.first = min({ret.first, it1.first, it2.first});
ret.second = max({ret.second, it1.second, it2.second});
return ret;
}
void change2(int id, int L, int R, int l, int r, int x){
if (r <= L or R <= l)
return;
if (l <= L and R <= 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |