# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
936261 | velislavgarkov | Bitaro’s Party (JOI18_bitaro) | C++14 | 1202 ms | 371540 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <iostream>
#include <vector>
using namespace std;
#define endl '\n'
const int MAXN=1e5+10;
const int BUCK=450;
vector <int> v[MAXN], op[MAXN];
vector <pair <int,int> > best[MAXN], help;
int lazy[MAXN], dp[MAXN];
bool used[MAXN];
int n;
void merge_sort(int i, int j) {
int bri, brj, cnt, gr;
bri=brj=cnt=0;
while (cnt<BUCK && (bri<best[i].size() || brj<best[j].size())) {
if (bri==best[i].size()) {
help.push_back(best[j][brj]);
used[best[j][brj].second]=true;
brj++;
} else if (brj==best[j].size()) {
help.push_back(best[i][bri]);
used[best[i][bri].second]=true;
bri++;
} else if (used[best[i][bri].second]) {
bri++;
continue;
} else if (used[best[j][brj].second]) {
brj++;
continue;
} else if (best[i][bri].first>best[j][brj].first) {
컴파일 시 표준 에러 (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... |