# | TimeUTC-0 | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
24626 | gs14004 | Shortcut (IOI16_shortcut) | C++11 | 1609 ms | 95780 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 "shortcut.h"
#include <bits/stdc++.h>
using namespace std;
typedef long long lint;
typedef pair<lint, lint> pi;
struct Fucking_locality{
lint arg1, arg2;
lint first;
int second;
bool operator<(const Fucking_locality &fuck)const{
return make_pair(first, second) < make_pair(fuck.first, fuck.second);
}
};
int n, c;
lint a[1000005], b[1000005];
Fucking_locality v[1000005], w[1000005];
bool trial(lint x){
lint ps = -1e18, pe = 1e18, ms = -1e18, me = 1e18;
lint mx = -1e18, mxp = -1, smx = -1e18;
lint mn = 1e18, mnp = -1, smn = 1e18;
int p = 0;
for(int i=0; i<n; i++){
while(p < n && w[p].first + x < v[i].first){
lint cmx = w[p].arg1;
lint cmn = w[p].arg2;
if(mx < cmx){
smx = mx;
# | 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... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |