# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
50992 |
2018-06-15T13:32:43 Z |
alenam0161 |
Gap (APIO16_gap) |
C++17 |
|
75 ms |
39180 KB |
#include "gap.h"
#include <iostream>
using namespace std;
long long findGap(int T, int N)
{
if (N == 0)return 0;
long long ans = 0;
long long inf = 1e18 + 1;
long long* fi=new long long(1);
long long* se=new long long(1);
MinMax(-1, inf, fi, se);
long long st = *fi;
while (true) {
MinMax(st + 1, inf, fi, se);
if (*fi == -1)break;
if (*fi - st > ans)ans = *fi - st;
st = *fi;
}
return ans;
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Incorrect |
2 ms |
376 KB |
Output isn't correct |
2 |
Incorrect |
2 ms |
496 KB |
Output isn't correct |
3 |
Incorrect |
2 ms |
552 KB |
Output isn't correct |
4 |
Incorrect |
2 ms |
552 KB |
Output isn't correct |
5 |
Incorrect |
2 ms |
552 KB |
Output isn't correct |
6 |
Incorrect |
2 ms |
660 KB |
Output isn't correct |
7 |
Incorrect |
2 ms |
660 KB |
Output isn't correct |
8 |
Incorrect |
2 ms |
868 KB |
Output isn't correct |
9 |
Incorrect |
2 ms |
868 KB |
Output isn't correct |
10 |
Incorrect |
2 ms |
868 KB |
Output isn't correct |
11 |
Incorrect |
3 ms |
868 KB |
Output isn't correct |
12 |
Incorrect |
3 ms |
868 KB |
Output isn't correct |
13 |
Incorrect |
3 ms |
868 KB |
Output isn't correct |
14 |
Incorrect |
3 ms |
868 KB |
Output isn't correct |
15 |
Incorrect |
2 ms |
868 KB |
Output isn't correct |
16 |
Incorrect |
19 ms |
1492 KB |
Output isn't correct |
17 |
Incorrect |
18 ms |
1928 KB |
Output isn't correct |
18 |
Incorrect |
18 ms |
2356 KB |
Output isn't correct |
19 |
Incorrect |
17 ms |
2912 KB |
Output isn't correct |
20 |
Incorrect |
13 ms |
2992 KB |
Output isn't correct |
21 |
Incorrect |
65 ms |
5468 KB |
Output isn't correct |
22 |
Incorrect |
66 ms |
7244 KB |
Output isn't correct |
23 |
Incorrect |
64 ms |
9128 KB |
Output isn't correct |
24 |
Incorrect |
65 ms |
10992 KB |
Output isn't correct |
25 |
Incorrect |
56 ms |
12180 KB |
Output isn't correct |
26 |
Incorrect |
75 ms |
14204 KB |
Output isn't correct |
27 |
Incorrect |
71 ms |
15988 KB |
Output isn't correct |
28 |
Incorrect |
65 ms |
17832 KB |
Output isn't correct |
29 |
Incorrect |
65 ms |
19692 KB |
Output isn't correct |
30 |
Incorrect |
49 ms |
20308 KB |
Output isn't correct |
31 |
Runtime error |
2 ms |
20308 KB |
Execution failed because the return code was nonzero |
32 |
Runtime error |
2 ms |
20308 KB |
Execution failed because the return code was nonzero |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
2 ms |
20308 KB |
Output is correct |
2 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
3 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
4 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
5 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
6 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
7 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
8 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
9 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
10 |
Partially correct |
2 ms |
20308 KB |
Partially correct |
11 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
12 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
13 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
14 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
15 |
Partially correct |
3 ms |
20308 KB |
Partially correct |
16 |
Partially correct |
17 ms |
20384 KB |
Partially correct |
17 |
Partially correct |
18 ms |
20816 KB |
Partially correct |
18 |
Partially correct |
18 ms |
21312 KB |
Partially correct |
19 |
Partially correct |
17 ms |
21776 KB |
Partially correct |
20 |
Partially correct |
13 ms |
21948 KB |
Partially correct |
21 |
Incorrect |
70 ms |
24280 KB |
Expected int32, but "5000150001" found |
22 |
Incorrect |
64 ms |
26308 KB |
Expected int32, but "5000150001" found |
23 |
Incorrect |
64 ms |
28036 KB |
Expected int32, but "5000150001" found |
24 |
Incorrect |
65 ms |
29880 KB |
Expected int32, but "5000150001" found |
25 |
Incorrect |
56 ms |
31212 KB |
Expected int32, but "5000150001" found |
26 |
Incorrect |
65 ms |
33012 KB |
Expected int32, but "5000150001" found |
27 |
Incorrect |
65 ms |
34784 KB |
Expected int32, but "5000150001" found |
28 |
Incorrect |
64 ms |
36756 KB |
Expected int32, but "5000150001" found |
29 |
Incorrect |
64 ms |
38604 KB |
Expected int32, but "5000150001" found |
30 |
Incorrect |
50 ms |
39180 KB |
Expected int32, but "5000150001" found |
31 |
Runtime error |
2 ms |
39180 KB |
Execution failed because the return code was nonzero |
32 |
Runtime error |
2 ms |
39180 KB |
Execution failed because the return code was nonzero |