# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
551907 | QwertyPi | Bubble Sort 2 (JOI18_bubblesort2) | C++14 | 9060 ms | 8652 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bubblesort2.h"
#include <bits/stdc++.h>
using namespace std;
const int N = 5e5 + 5, K = 1e6 + 6;
const int INF = 1e9 + 1;
typedef pair<int, int> pii;
struct BIT{
int bit[K + 1];
void init(int n){
for(int i = 1; i <= n; i++){
bit[i] = 0;
}
}
void upd(int p, int v){
while(p <= K){
bit[p] += v;
p += p & -p;
}
}
int qry(int p){
int ret = 0;
while(p){
ret += bit[p];
p -= p & -p;
}
return ret;
}
} bit;
# | 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... |