# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
466376 | palilo | Bubble Sort 2 (JOI18_bubblesort2) | C++17 | 3580 ms | 47340 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bubblesort2.h"
#include <bits/stdc++.h>
using namespace std;
template <typename node_t, typename tag_t>
class lazy_segtree {
// change this (1/2)
const node_t e = -0x3f3f3f3f;
const tag_t off {};
// change this (1/2)
const size_t n, height, size;
vector<node_t> tree;
vector<tag_t> lazy;
public:
lazy_segtree(size_t n) : n(n), height(n ? __lg(n - 1) + 1 : 0), size(1 << height),
tree(size << 1, e), lazy(size, off) {}
node_t& operator[](size_t i) { return tree[size + i]; }
void build() {
for (size_t i = size; i--;) {
pull(i);
}
}
void apply(size_t l, size_t r, tag_t f) {
assert(0 <= l and l <= r and r <= n);
apply(l, r, f, 0, size, 1);
}
node_t prod(size_t l, size_t r) {
assert(0 <= l and l <= r and r <= n);
# | 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... |