Submission #149819

# Submission time Handle Problem Language Result Execution time Memory
149819 2019-09-01T07:13:06 Z (παρα)γεμιστά(#3619, cfalas, ctziapo, Charis02) Crosses on the Grid (FXCUP4_cross) C++17
8 / 100
97 ms 3692 KB
#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 time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 6 ms 384 KB Output is correct
3 Correct 6 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 97 ms 3692 KB Output is correct
7 Correct 92 ms 3688 KB Output is correct
8 Correct 89 ms 3692 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 6 ms 384 KB Output is correct
3 Correct 6 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 97 ms 3692 KB Output is correct
7 Correct 92 ms 3688 KB Output is correct
8 Correct 89 ms 3692 KB Output is correct
9 Incorrect 5 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 5 ms 384 KB Output is correct
2 Correct 6 ms 384 KB Output is correct
3 Correct 6 ms 384 KB Output is correct
4 Correct 6 ms 384 KB Output is correct
5 Correct 12 ms 640 KB Output is correct
6 Correct 97 ms 3692 KB Output is correct
7 Correct 92 ms 3688 KB Output is correct
8 Correct 89 ms 3692 KB Output is correct
9 Incorrect 5 ms 384 KB Output isn't correct
10 Halted 0 ms 0 KB -