# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
737001 | nguyentunglam | Advertisement 2 (JOI23_ho_t2) | C++17 | 223 ms | 14820 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define fi first
#define se second
#define endl "\n"
#define ii pair<int, int>
using namespace std;
const int N = 5e5 + 10;
int x[N], e[N], n;
vector<pair<int, int> > v;
struct BIT {
int bit[N];
void up(int pos, int val) {
while (pos <= n) {
bit[pos] = max(bit[pos], val);
pos += pos & -pos;
}
}
int get(int pos) {
int ret = -2e9;
while (pos) {
ret = max(ret, bit[pos]);
pos -= pos & -pos;
}
return ret;
}
} bit[2];
int main() {
#define task ""
cin.tie(0) -> sync_with_stdio(0);
if (fopen ("task.inp", "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... |