#include "cross.h"
using namespace std;
typedef long long lld;
lld SelectCross(int N, int K, vector<int> I, vector<int> O) {
lld mx=0;
for(int i=0; i<N; i++){
if(mx < (lld)I[i]*(2*O[i]-I[i])) mx = (lld)I[i]*(2*O[i]-I[i]);
}
return mx;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
384 KB |
Output is correct |
4 |
Correct |
2 ms |
256 KB |
Output is correct |
5 |
Correct |
5 ms |
512 KB |
Output is correct |
6 |
Correct |
64 ms |
3564 KB |
Output is correct |
7 |
Correct |
66 ms |
3560 KB |
Output is correct |
8 |
Correct |
65 ms |
3564 KB |
Output is correct |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
384 KB |
Output is correct |
4 |
Correct |
2 ms |
256 KB |
Output is correct |
5 |
Correct |
5 ms |
512 KB |
Output is correct |
6 |
Correct |
64 ms |
3564 KB |
Output is correct |
7 |
Correct |
66 ms |
3560 KB |
Output is correct |
8 |
Correct |
65 ms |
3564 KB |
Output is correct |
9 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
10 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
256 KB |
Output is correct |
3 |
Correct |
1 ms |
384 KB |
Output is correct |
4 |
Correct |
2 ms |
256 KB |
Output is correct |
5 |
Correct |
5 ms |
512 KB |
Output is correct |
6 |
Correct |
64 ms |
3564 KB |
Output is correct |
7 |
Correct |
66 ms |
3560 KB |
Output is correct |
8 |
Correct |
65 ms |
3564 KB |
Output is correct |
9 |
Incorrect |
2 ms |
384 KB |
Output isn't correct |
10 |
Halted |
0 ms |
0 KB |
- |