This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |