# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
651451 | pauloamed | Race (IOI11_race) | C++14 | 1006 ms | 88552 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>
#include "race.h"
using namespace std;
#define ll long long
const int MAXN = 500010;
vector<pair<int,int>> v[MAXN];
map<ll,multiset<int>> w2e;
int get(ll h){
return *w2e[h].begin();
}
void erase(ll h, int x){
w2e[h].erase(w2e[h].find(x));
if(w2e[h].size() == 0) w2e.erase(h);
}
void add(ll h, int x){
w2e[h].insert(x);
}
int k, ans;
namespace sack{
int T;
int t_in[MAXN], t_out[MAXN], t2node[MAXN];
int sz[MAXN];
int depth[MAXN];
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... |