답안 #812536

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
812536 2023-08-07T09:07:47 Z Dan4Life 전선 연결 (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;
}
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -
# 결과 실행 시간 메모리 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 -