# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
743938 | ThMinh_ | 가로등 (APIO19_street_lamps) | C++14 | 2119 ms | 93040 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include<bits/stdc++.h>
#define forin(i,a,b) for(int i=a;i<=b;++i)
#define fi first
#define la second
using namespace std;
const int N = 3e5 + 10;
int n, q;
vector<int> bit[N], tr[N];
bool a[N];
set<pair<int, int>> st;
struct query {
string s;
int i, a, b;
};
query d[N];
void fakeup(int f, int l) {
while(f <= n + 1) {
bit[f].push_back(l);
f += f & -f;
}
}
void fakeget(int f, int l) {
while(f) {
bit[f].push_back(l);
f -= f & -f;
}
}
void up(int f, int l, int val) {
while(f <= n + 1) {
int y = lower_bound(bit[f].begin(), bit[f].end(), l) - bit[f].begin() + 1;
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |