제출 #149676

#제출 시각아이디문제언어결과실행 시간메모리
149676티셔츠 콜렉터 (#200)십자가 놓기 (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...