답안 #822946

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
822946 2023-08-12T05:46:31 Z Shithila 전선 연결 (IOI17_wiring) C++14
0 / 100
1 ms 212 KB
#include "wiring.h"
#include<bits/stdc++.h>
using namespace std;
long long min_total_length(std::vector<int> r, std::vector<int> b) {
	int rlen=r.size();
	int blen=b.size();
	int x=0;
	int y=0;
	if(rlen<blen)
	{
		x=blen*(blen+1);
		x=x/2;
		y=rlen*(rlen-1);
		y=y/2;
	}
	else
	{
		x=blen*(blen-1);
		x=x/2;
		y=rlen*(rlen+1);
		y=y/2;
	}
	
	return x+y;
}
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 3rd lines differ - on the 1st token, expected: '25859', found: '123'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 1 ms 212 KB 3rd lines differ - on the 1st token, expected: '904', found: '315'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 3rd lines differ - on the 1st token, expected: '316', found: '36'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 3rd lines differ - on the 1st token, expected: '27', found: '100'
2 Halted 0 ms 0 KB -
# 결과 실행 시간 메모리 Grader output
1 Incorrect 0 ms 212 KB 3rd lines differ - on the 1st token, expected: '25859', found: '123'
2 Halted 0 ms 0 KB -