# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
282872 | IgorI | Palembang Bridges (APIO15_bridge) | C++17 | 542 ms | 23928 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll ans0, ans;
vector<pair<int, int> > a;
bool comp(pair<int, int> x, pair<int, int> y)
{
return x.first + x.second < y.first + y.second;
}
struct MedianGetter{
set<pair<int, int> > s0, s1;
int tot = 0;
ll si0 = 0, si1 = 0;
void add(int x)
{
pair<int, int> elem = {x, tot};
tot++;
if (s0.size() == 0)
{
s0.insert(elem);
si0 += x;
return;
}
auto it = s0.end();
컴파일 시 표준 에러 (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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |