| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1069551 | Ignut | Roller Coaster Railroad (IOI16_railroad) | C++17 | 2084 ms | 8020 KiB |
이 제출은 이전 버전의 oj.uz에서 채점하였습니다. 현재는 제출 당시와는 다른 서버에서 채점을 하기 때문에, 다시 제출하면 결과가 달라질 수도 있습니다.
// Ignut
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 1e18 + 123;
ll plan_roller_coaster(vector<int> s, vector<int> t) {
int n = s.size();
vector<int> vec(n, 0);
iota(vec.begin(), vec.end(), 0);
ll res = INF;
do {
int speed = 1;
ll ans = 0;
for (int i : vec) {
ans += max(0, speed - s[i]);
speed = t[i];
}
res = min(res, ans);
} while (next_permutation(vec.begin(), vec.end()));
return res;
}| # | 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... | ||||
