# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
170910 | songc | Street Lamps (APIO19_street_lamps) | C++14 | 1335 ms | 26708 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
typedef pair<int,int> pii;
int N, Q;
int A[303030];
bool chk[303030];
int ans[303030];
struct Sq{
int x, y, t;
bool operator<(const Sq &r)const{
if (x == r.x) return y < r.y;
return x < r.x;
}
};
set<Sq> S;
vector<Sq> V, L;
int T[303030];
void update(int k, int v){
while (k<=N){
T[k] += v;
k += k & -k;
}
}
int read(int k){
Compilation message (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... |