Submission #150642

#TimeUsernameProblemLanguageResultExecution timeMemory
150642Ragtag Volunteers (#200)Crosses on the Grid (FXCUP4_cross)C++17
0 / 100
5 ms384 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(4 * 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...