Submission #822941

# Submission time Handle Problem Language Result Execution time Memory
822941 2023-08-12T05:33:10 Z Shithila Wiring (IOI17_wiring) C++14
0 / 100
1 ms 260 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;
	if(rlen>blen)
	{
		x=blen*blen;
		for(int i=blen+1;i<=rlen;i++)
		{
			x=x+i;
		}
	}
	else
	{
		x=rlen*rlen;
		for(int i=rlen+1;i<=blen;i++)
		{
			x=x+i;
		}
	}
	return x;
}
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 260 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 1 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 1 ms 260 KB 3rd lines differ - on the 1st token, expected: '25859', found: '123'
2 Halted 0 ms 0 KB -