Submission #150669

#TimeUsernameProblemLanguageResultExecution timeMemory
150669Ragtag Volunteers (#200)Crosses on the Grid (FXCUP4_cross)C++17
8 / 100
89 ms3692 KiB
#include "cross.h"

#include <algorithm>

using namespace std;
using ll = long long;

long long SelectCross(const int k, std::vector<int> I, std::vector<int> O) {
	const int n = I.size();
	ll res = 0;
	for (int i = 0; i < n; i++) {
		res = max(res, ll(2 * O[i] - I[i]) * I[i]);
	}
	return res;
}
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...