# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
723956 | alvingogo | Sky Walking (IOI19_walk) | C++14 | 4054 ms | 472628 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 "walk.h"
#include <bits/stdc++.h>
#pragma GCC optimize("Ofast")
#define fs first
#define sc second
using namespace std;
typedef pair<int,int> pii;
typedef long long ll;
long long min_distance(vector<int> x, vector<int> h, vector<int> l, vector<int> r, vector<int> y, int S, int T) {
int n=x.size(),m=l.size();
vector<pair<int,int> > g(n);
for(int i=0;i<n;i++){
g[i]={h[i],i};
}
sort(g.begin(),g.end());
vector<pair<pair<int,int>,int> > e(m);
for(int i=0;i<m;i++){
e[i]={{l[i],r[i]},y[i]};
}
sort(e.begin(),e.end(),[&](auto a,auto b){return a.sc<b.sc;});
set<int> s;
for(int i=0;i<n;i++){
s.insert(i);
}
int dl=0;
map<pair<int,int>,int> mp;
int cnt=0;
vector<vector<pair<int,int> > > re;
re.reserve(2400000);
# | 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... |