# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
404925 | FatihSolak | Exercise Deadlines (CCO20_day1problem2) | C++17 | 3 ms | 1912 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
#define N 200005
#define int long long
using namespace std;
int arr[N];
int brr[N];
struct BIT{
int n;
vector<int> bit;
BIT(int l){
n = l+1;
bit.assign(n,0);
}
void upd(int pos){
for(pos++;pos<n;pos+=pos&-pos){
bit[pos]++;
}
}
int get(int pos){
int ret = 0;
for(pos++;pos>0;pos-=pos&-pos){
ret += bit[pos];
}
return ret;
}
}bt(N);
void solve(){
int n;
cin >> n;
for(int i=1;i<=n;i++){
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |