Submission #1051848

# Submission time Handle Problem Language Result Execution time Memory
1051848 2024-08-10T10:12:04 Z Unforgettablepl Wiring (IOI17_wiring) C++17
0 / 100
0 ms 348 KB
#include "wiring.h"
#include <bits/stdc++.h>
using namespace std;


long long min_total_length(vector<int> r, vector<int> b) {
	long long ans = 0;
	for(int&i:b)ans+=i-r.back();
	for(int&i:r)ans+=b.front()-i;
	return ans-b.front()+r.back();
}
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 3rd lines differ - on the 1st token, expected: '25859', found: '-29002'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 3rd lines differ - on the 1st token, expected: '904', found: '946'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 3rd lines differ - on the 1st token, expected: '316', found: '356'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 348 KB 3rd lines differ - on the 1st token, expected: '27', found: '-114'
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 344 KB 3rd lines differ - on the 1st token, expected: '25859', found: '-29002'
2 Halted 0 ms 0 KB -