# | 제출 시각UTC-0 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
---|---|---|---|---|---|---|---|
114333 | Bruteforceman | Palembang Bridges (APIO15_bridge) | C++11 | 337 ms | 23912 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
#include "bits/stdc++.h"
using namespace std;
typedef pair <int, int> pii;
vector <pii> v;
long long pre[1000010], suf[1000010];
bool cmp(pii a, pii b) {
return a.first + a.second < b.first + b.second;
}
long long solver(vector <pii> u) {
vector <int> a;
for(auto i : u) {
a.push_back(i.first);
a.push_back(i.second);
}
sort(a.begin(), a.end());
long long ans = 0;
for(int i : a) {
ans += abs(a[a.size() / 2] - i);
}
return ans;
}
struct median_ds {
multiset <int> P, Q;
long long sumP, sumQ;
median_ds () {
sumP = sumQ = 0;
컴파일 시 표준 에러 (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... |