# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
62062 |
2018-07-27T11:17:19 Z |
aome |
Rice Hub (IOI11_ricehub) |
C++17 |
|
6 ms |
636 KB |
#include "ricehub.h"
#include <bits/stdc++.h>
using namespace std;
int besthub(int R, int L, int X[], long long B) {
int ptr = 0, res = 0;
for (int i = 0; i < R; ++i) {
while (ptr < R && 3LL * (X[ptr] - X[i]) <= 2 * B) ptr++;
res = max(res, ptr - i);
}
return res;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
3 ms |
252 KB |
Output is correct |
2 |
Incorrect |
3 ms |
356 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
4 ms |
432 KB |
Output is correct |
2 |
Correct |
2 ms |
636 KB |
Output is correct |
3 |
Correct |
2 ms |
636 KB |
Output is correct |
4 |
Incorrect |
2 ms |
636 KB |
Output isn't correct |
5 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
636 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
6 ms |
636 KB |
Output isn't correct |
2 |
Halted |
0 ms |
0 KB |
- |