Submission #822946

# Submission time Handle Problem Language Result Execution time Memory
822946 2023-08-12T05:46:31 Z Shithila Wiring (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;
}
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -
# Verdict Execution time Memory 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 -