#include<bits/stdc++.h>
#include "wiring.h"
using namespace std;
long long min_total_length(std::vector<int> r, std::vector<int> b) {
long long ans = 0;
for (auto& it : r)
ans += abs(it - b[0]);
for (auto& it : b)
ans += abs(it - r.back());
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
304 KB |
3rd lines differ - on the 1st token, expected: '25859', found: '52907' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
292 KB |
3rd lines differ - on the 1st token, expected: '904', found: '949' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
212 KB |
3rd lines differ - on the 1st token, expected: '316', found: '364' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
300 KB |
3rd lines differ - on the 1st token, expected: '27', found: '150' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
304 KB |
3rd lines differ - on the 1st token, expected: '25859', found: '52907' |
2 |
Halted |
0 ms |
0 KB |
- |