Submission #414961

# Submission time Handle Problem Language Result Execution time Memory
414961 2021-05-31T11:17:11 Z MeGustaElArroz23 Shortcut (IOI16_shortcut) C++14
Compilation error
0 ms 0 KB
#include "railroad.h"
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<ll,ll> pii;
typedef vector<pii> vii;
typedef vector<vii> vvii;
typedef vector<bool> vb;

ll potencia(ll a, ll n){
    if (n==0) return 1;
    ll sol=potencia(a,n/2);
    sol*=sol;
    if (n%2) sol*=a;
    return sol;
}

ll vb_to_int(vb x){
    ll pot=1;
    ll sol=0;
    for (int i=0;i<16;i++){

    }
}

const ll INF=1000000000000000000;

ll plan_roller_coaster(vi in, vi out) {
    if (true){ //subtask 3
        int n=in.size();
        multiset<pii> pares;
        for (int i=0;i<n;i++) pares.insert(pii{in[i],out[i]});
        int ac=1;
        for (int i=0;i<n;i++){
            //cerr << ac << ' ';
            auto x=pares.upper_bound(pii{ac,0});
            if (x==pares.end()) return 0;
            ac=(*x).second;
            pares.erase(x);
        }
        return 1;
    }
    return 2;
}

Compilation message

shortcut.cpp:1:10: fatal error: railroad.h: No such file or directory
    1 | #include "railroad.h"
      |          ^~~~~~~~~~~~
compilation terminated.