# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
994852 | SuPythony | Roller Coaster Railroad (IOI16_railroad) | C++17 | 105 ms | 16724 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 "railroad.h"
using namespace std;
typedef long long ll;
ll plan_roller_coaster(vector<int> s, vector<int> t) {
int curr=1;
multiset<pair<int,int>> a;
for (int i=0; i<s.size(); i++) {
a.insert({s[i],t[i]});
}
while (!a.empty()) {
auto it=a.lower_bound({curr,0});
if (it==a.end()) return 1;
curr=(*it).second;
a.erase(it);
}
return 0;
};
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... |