| # | 제출 시각 | 아이디 | 문제 | 언어 | 결과 | 실행 시간 | 메모리 |
|---|---|---|---|---|---|---|---|
| 1329490 | kawhiet | Wiring (IOI17_wiring) | C++20 | 15 ms | 1960 KiB |
#include <bits/stdc++.h>
#include "wiring.h"
using namespace std;
constexpr int inf = 1e9;
long long min_total_length(vector<int> a, vector<int> b) {
int n = a.size(), m = b.size();
long long ans = 0;
int i = n - 1, j = 0;
while (i >= 0 && j < m) {
ans += b[j] - a[i];
i--; j++;
}
while (i >= 0) {
ans += b[0] - a[i];
i--;
}
while (j < m) {
ans += b[j] - a[n - 1];
j++;
}
return ans;
}| # | 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... | ||||
