Submission #812536

# Submission time Handle Problem Language Result Execution time Memory
812536 2023-08-07T09:07:47 Z Dan4Life Wiring (IOI17_wiring) C++17
0 / 100
1 ms 300 KB
#include "wiring.h"
#include <bits/stdc++.h>
using namespace std;
#define sz(a) (int)a.size()
#define all(a) begin(a),end(a)
using ll = long long;

ll min_total_length(vector<int> a, vector<int> b) {
	int n = sz(a), m = sz(b);
	ll tot = 0;
	for(int i = 0; i < m; i++) tot+=b[i]-a.back();
	for(int i = 0; i < n-1; i++) tot+=b[0]-a[i];
	return tot;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 212 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 1 ms 212 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 1 ms 300 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 1 ms 212 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 1 ms 212 KB 3rd lines differ - on the 1st token, expected: '25859', found: '-29002'
2 Halted 0 ms 0 KB -