# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
551221 | Sohsoh84 | Rice Hub (IOI11_ricehub) | C++17 | 51 ms | 3224 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 "ricehub.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> pll;
#define X first
#define Y second
#define sep ' '
#define debug(x) cerr << #x << ": " << x << endl;
const ll MAXN = 1e6 + 10;
inline pll operator+ (const pll& a, const pll& b) {
return {a.X + b.X, a.Y + b.Y};
}
int n;
vector<ll> vec;
namespace median {
pll fen[MAXN], tot = {0, 0};
inline void update(int ind, pll val) {
tot = tot + val;
for (++ind; ind < MAXN; ind += ind & -ind)
fen[ind] = fen[ind] + val;
}
# | 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... |