#include<bits/stdc++.h>
long long min_total_length(std::vector<int> r,std::vector<int> b){
long long minLen=0;
int n=r.size();
int m=b.size();
for(int j=0;j<n-1;j++){
minLen += b[0]-r[j];
}
for(int i=1;i<m;i++){
minLen += b[i]-r[n-1];
}
return minLen;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
3rd lines differ - on the 1st token, expected: '25859', found: '-26325' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
3rd lines differ - on the 1st token, expected: '904', found: '943' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
364 KB |
3rd lines differ - on the 1st token, expected: '316', found: '348' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
256 KB |
3rd lines differ - on the 1st token, expected: '27', found: '-100' |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
2 ms |
384 KB |
3rd lines differ - on the 1st token, expected: '25859', found: '-26325' |
2 |
Halted |
0 ms |
0 KB |
- |