# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
656755 | uylulu | 운세 보기 2 (JOI14_fortune_telling2) | C++17 | 1136 ms | 89852 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
#define ld long double
#define ll long long
#define endl "\n"
const int N = 6e5 + 100,K = 20;
int a[N + 1],b[N + 1];
int val[N + 1],lst[N + 1],cnt = 0;
int sparse[N + 1][K + 1],lg[N + 1];
bool sign[N + 1];
map<int,int> mp;
vector<int> query;
int bit[N + 1];
void add(int pos) {
while(pos > 0) {
bit[pos]++;
pos -= pos&(-pos);
}
}
int queryBIT(int pos) {
int res = 0;
for(int i = pos;i <= cnt;i += i&(-i)) {
컴파일 시 표준 에러 (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... |