# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
114141 | fedoseevtimofey | Palembang Bridges (APIO15_bridge) | C++14 | 348 ms | 25572 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>
#define int long long
using namespace std;
typedef long long ll;
typedef long double ld;
struct triple {
int a, b, c;
bool operator <(const triple &other) const {
return a < other.a;
}
};
struct median {
multiset <int> a, b;
ll sa, sb;
void push(int x) {
if (b.empty() || x >= *b.begin()) {
b.insert(x);
sb += x;
}
else {
a.insert(x);
sa += x;
}
while (a.size() > b.size()) {
int c = *a.rbegin();
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |