# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
380623 | ntabc05101 | Bubble Sort 2 (JOI18_bubblesort2) | C++14 | 3651 ms | 128992 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#if not LOCAL
#define NDEBUG 1
#endif // LOCAL
#include<bits/stdc++.h>
const int inf=1e9+9;
struct SegmentTree {
std::vector<int64_t> nodes, lazy;
std::vector<int> L, H;
void buildRange(int node, int low, int high) {
L[node]=low, H[node]=high;
nodes[node]=lazy[node]=0;
if (low==high) {
return ;
}
int mid=(low+high)>>1;
buildRange(node<<1, low, mid);
buildRange(node<<1|1, mid+1, high);
}
SegmentTree(int n) {
nodes.resize(n<<2); lazy.resize(n<<2);
L.resize(n<<2), H.resize(n<<2);
buildRange(1, 1, n);
}
void propagate(int node) {
# | 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... |