# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
149762 | 2019-09-01T07:07:14 Z | (παρα)γεμιστά(#3619, cfalas, ctziapo, Charis02) | Crosses on the Grid (FXCUP4_cross) | C++17 | 0 ms | 0 KB |
#include "cross.h" 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++){ ans = max(ans, O[i]*O[i] - 2*O[i]*I[i] ); } return ans; }