# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
167199 | jh05013 | Examination (JOI19_examination) | C++17 | 3102 ms | 279224 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define entire(X) X.begin(),X.end()
using namespace std; typedef long long ll;
void OJize(){cin.tie(NULL); ios_base::sync_with_stdio(false);}
template <typename T>
struct Compress{
int n; vector<T> arr;
void add(T x){arr.push_back(x); n++;}
void init(){sort(entire(arr)), arr.erase(unique(entire(arr)), arr.end());}
int lb(T x){return lower_bound(entire(arr), x) - arr.begin();}
int ub(T x){return upper_bound(entire(arr), x) - arr.begin();}
};
template <typename T>
struct Fenwick2d{
int n, m;
vector<unordered_map<int, T>> arr;
Fenwick2d(int N, int M): n(N), m(M), arr(n) {}
void update(int i, int j, T val){
for(; i<n; i|=i+1) for(int p=j; p<m; p|=p+1)
arr[i][p]+= val;
}
T getsum(int i, int j){
T res = 0;
for(; i>=0; i=(i&(i+1))-1) for(int p=j; p>0; p=(p&(p+1))-1)
res+= arr[i][p];
return res;
}
};
# | 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... |