Submission #149819

#TimeUsernameProblemLanguageResultExecution timeMemory
149819(παρα)γεμιστά (#200)Crosses on the Grid (FXCUP4_cross)C++17
8 / 100
97 ms3692 KiB
#include "cross.h"
#include<bits/stdc++.h>
using namespace std;

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++){
		long long o=O[i];
		long long j = I[i];
		ans = max(ans, 2*o*j - j*j);
	}

	return ans;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...