# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
853759 | NeroZein | Bitaro’s Party (JOI18_bitaro) | C++17 | 2043 ms | 11608 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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... |