# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
591051 | GusterGoose27 | Event Hopping (BOI22_events) | C++11 | 210 ms | 26572 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef pair<int, int> pii;
const int MAXN = 1e5;
pii ints[MAXN];
pair<pair<int, bool>, int> endpoints[2*MAXN];
int next_int[MAXN][20];
int prev_int[MAXN][20];
int n, q;
int ints_sort[MAXN];
const int inf = 2e9;
class STree {
public:
int n;
int *mn_left;
int n_orig;
STree(int nn) {
n_orig = nn;
n = pow(2, ceil(log2(nn)));
mn_left = new int[2*n];
fill(mn_left, mn_left+2*n, 0);
for (int i = 0; i < nn; i++) mn_left[i+n] = ints_sort[i];
for (int i = n-1; i > 0; i--) {
int la = ints[mn_left[2*i]].first;
int lb = ints[mn_left[2*i+1]].first;
if (la <= lb) mn_left[i] = mn_left[2*i];
# | 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... |