Submission #150642

# Submission time Handle Problem Language Result Execution time Memory
150642 2019-09-01T08:46:02 Z Ragtag Volunteers(#3721, spellstaker, iamssk, ParaSpawn) Crosses on the Grid (FXCUP4_cross) C++17
0 / 100
5 ms 384 KB
#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(4 * O[i] - I[i]) * I[i]);
	}
	return res;
}
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 5 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -