# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
727348 | Arturgo | Event Hopping (BOI22_events) | C++14 | 449 ms | 59268 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define int long long
using namespace std;
const int INFINI = 1000 * 1000 * 1000;
map<int, int> idxs;
vector<pair<int, int>> arbre((1 << 20), {INFINI, -1});
void set_min(int pos, pair<int, int> val) {
pos += (1 << 19);
while(pos != 0) {
arbre[pos] = min(arbre[pos], val);
pos /= 2;
}
}
pair<int, int> get_min(int deb, int fin) {
deb += (1 << 19);
fin += (1 << 19);
pair<int, int> mini = {INFINI, -1};
while(deb < fin) {
if(deb % 2 == 1) {
mini = min(mini, arbre[deb]);
deb++;
}
if(fin % 2 == 1) {
fin--;
# | 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... |