Submission #149707

#TimeUsernameProblemLanguageResultExecution timeMemory
149707티셔츠 콜렉터 (#200)Crosses on the Grid (FXCUP4_cross)C++17
8 / 100
85 ms3692 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 R = O[i];
			long long r = O[i]-I[i];
			long long rec = R*R-r*r;
			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...