#include "cross.h"
long long crossSize(int ins, int outs)
{
return (2*ins*outs-ins*ins);
}
long long SelectCross(int K, std::vector<int> I, std::vector<int> O) {
int N = I.size();
long long ans = 0;
for (int i = 0; i<N; i++)
{
//printf("%d %d -> %lld\n",I[i],O[i],crossSize(I[i],O[i]));
ans = std::max(ans, crossSize(I[i],O[i]));
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
7 ms |
384 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |