Submission #149676

#TimeUsernameProblemLanguageResultExecution timeMemory
149676티셔츠 콜렉터 (#200)Crosses on the Grid (FXCUP4_cross)C++17
0 / 100
6 ms384 KiB
#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 timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...