# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
853759 | NeroZein | Bitaro’s Party (JOI18_bitaro) | C++17 | 2043 ms | 11608 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
#ifdef Nero
#include "Deb.h"
#else
#define deb(...)
#endif
const int B = 1000;
const int N = 1e5 + 5;
using T = pair<int, int>;
bool in[N];
bool blocked[N];
vector<int> rg[N];
vector<T> furthest[N]; //desceding on second
vector<T> merge(vector<T> x, vector<T> y) {
vector<T> ret;
int i = 0, j = 0;
int n = (int) x.size(), m = (int) y.size();
while ((int) ret.size() < B && (i < n || j < m)) {
if (i == n || (j < m && x[i].second <= y[j].second)) {
if (!in[y[j].first]) {
in[y[j].first] = 1;
ret.push_back(y[j]);
ret.back().second++;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |