# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
107214 | nxteru | Palembang Bridges (APIO15_bridge) | C++14 | 131 ms | 6884 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;
typedef long long ll;
#define PB push_back
struct t{
ll a,b;
bool operator<(const t&q)const{
return a+b<q.a+q.b;
}
};
struct mid{
priority_queue<ll>d;
priority_queue<ll,vector<ll>,greater<ll> >u;
ll ds,us;
void ini(void){
ds=0,us=0;
while(!d.empty())d.pop();
while(!u.empty())u.pop();
}
void pushd(ll x){
d.push(x);
ds+=x;
}
void pushu(ll x){
u.push(x);
us+=x;
}
ll popd(void){
ll res=d.top();
d.pop();
Compilation message (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... |