#include <bits/stdc++.h>
#include "gap.h"
using namespace std;
long long a[200001];
long long findGap(int t,int n)
{
long long int minn,maxx,ans=0;
a[0]=-1;
for(int i=1;i<=n;i++)
{
MinMax(a[i-1]+1,1e18,&minn,&maxx);
a[i]=minn;
//cout<<a[i]<<" "<<a[i-1]<<endl;
if(i>1)ans=max(ans,a[i]-a[i-1]);
}
return ans;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
344 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
3 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
4 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
11 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
12 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
13 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
14 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
15 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
16 |
Incorrect |
8 ms |
2540 KB |
Output isn't correct |
17 |
Incorrect |
8 ms |
2544 KB |
Output isn't correct |
18 |
Incorrect |
8 ms |
2540 KB |
Output isn't correct |
19 |
Incorrect |
8 ms |
2648 KB |
Output isn't correct |
20 |
Incorrect |
7 ms |
2540 KB |
Output isn't correct |
21 |
Incorrect |
33 ms |
3620 KB |
Output isn't correct |
22 |
Incorrect |
33 ms |
3448 KB |
Output isn't correct |
23 |
Incorrect |
34 ms |
3436 KB |
Output isn't correct |
24 |
Incorrect |
33 ms |
3448 KB |
Output isn't correct |
25 |
Incorrect |
31 ms |
3448 KB |
Output isn't correct |
26 |
Incorrect |
33 ms |
3456 KB |
Output isn't correct |
27 |
Incorrect |
35 ms |
3408 KB |
Output isn't correct |
28 |
Incorrect |
34 ms |
3456 KB |
Output isn't correct |
29 |
Incorrect |
34 ms |
3448 KB |
Output isn't correct |
30 |
Incorrect |
28 ms |
3444 KB |
Output isn't correct |
31 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
32 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
2392 KB |
Output is correct |
2 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
3 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
4 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
5 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
6 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
7 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
8 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
9 |
Partially correct |
0 ms |
2392 KB |
Partially correct |
10 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
11 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
12 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
13 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
14 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
15 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
16 |
Partially correct |
8 ms |
2548 KB |
Partially correct |
17 |
Partially correct |
8 ms |
2544 KB |
Partially correct |
18 |
Partially correct |
8 ms |
2792 KB |
Partially correct |
19 |
Partially correct |
8 ms |
2552 KB |
Partially correct |
20 |
Partially correct |
7 ms |
2648 KB |
Partially correct |
21 |
Incorrect |
34 ms |
3244 KB |
Expected int32, but "5000150000" found |
22 |
Incorrect |
33 ms |
3452 KB |
Expected int32, but "5000150000" found |
23 |
Incorrect |
33 ms |
3456 KB |
Expected int32, but "5000150000" found |
24 |
Incorrect |
33 ms |
3452 KB |
Expected int32, but "5000150000" found |
25 |
Incorrect |
31 ms |
3440 KB |
Expected int32, but "5000150000" found |
26 |
Incorrect |
34 ms |
3444 KB |
Expected int32, but "5000150000" found |
27 |
Incorrect |
33 ms |
3464 KB |
Expected int32, but "5000150000" found |
28 |
Incorrect |
34 ms |
3400 KB |
Expected int32, but "5000150000" found |
29 |
Incorrect |
33 ms |
3420 KB |
Expected int32, but "5000150000" found |
30 |
Incorrect |
29 ms |
3372 KB |
Expected int32, but "5000150000" found |
31 |
Partially correct |
1 ms |
2392 KB |
Partially correct |
32 |
Partially correct |
1 ms |
2392 KB |
Partially correct |