Submission #149676

# Submission time Handle Problem Language Result Execution time Memory
149676 2019-09-01T06:56:43 Z 티셔츠 콜렉터(#3632, yoni, jisunchae, jsg1504) Crosses on the Grid (FXCUP4_cross) C++17
0 / 100
6 ms 384 KB
#include "cross.h"

long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
	int N = I.size();
	if (K == 1) {
		long long max = 0;
		for (int i=0; i<N; i++) {
			long long rec = O[i]*O[i];
			rec -= (O[i]-I[i])*(O[i]-I[i]);
			if (rec > max) {
				max = rec;
			}
		}
		return max;
	}
	return 0;
}
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 6 ms 384 KB Output isn't correct
2 Halted 0 ms 0 KB -