#include "cross.h"
long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
int N = I.size();
long long maxsize = 0;
for(int i=0;i<N;i++){
long long now = (long long)(O[i]*O[i]) - (long long)((O[i]-I[i])*(O[i]-I[i]));
maxsize = (maxsize>now)?maxsize:now;
}
return maxsize;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
5 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |