Submission #148708

# Submission time Handle Problem Language Result Execution time Memory
148708 2019-09-01T04:58:20 Z Little Piplup(#3742, gratus907, DHdroid, coffeetea99) Crosses on the Grid (FXCUP4_cross) C++17
0 / 100
7 ms 384 KB
#include "cross.h"

long long crossSize(int ins, int outs)
{
	return (2*ins*outs-ins*ins);
}
long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
	int N = I.size();
	long long ans = 0;
	for (int i = 0; i<N; i++)
	{
		//printf("%d %d -> %lld\n",I[i],O[i],crossSize(I[i],O[i]));
		ans = std::max(ans, crossSize(I[i],O[i]));
	}
	return ans;
}
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 7 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -