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"
using namespace std;
long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
long long n = I.size();
long long i, ret=0;
for(i=0;i<n;i++) ret=max(ret, (long long)O[i]*I[i]*2-(long long)I[i]*I[i]);
return ret;
}
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |
# | Verdict | Execution time | Memory | Grader output |
---|
Fetching results... |