#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;
for(int i=1;i<=n;i++)
{
MinMax(a[i-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 |
1 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
1 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 |
0 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
0 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 |
7 ms |
2532 KB |
Output isn't correct |
17 |
Incorrect |
6 ms |
2536 KB |
Output isn't correct |
18 |
Incorrect |
6 ms |
2548 KB |
Output isn't correct |
19 |
Incorrect |
6 ms |
2548 KB |
Output isn't correct |
20 |
Incorrect |
5 ms |
2528 KB |
Output isn't correct |
21 |
Incorrect |
25 ms |
3444 KB |
Output isn't correct |
22 |
Incorrect |
25 ms |
3444 KB |
Output isn't correct |
23 |
Incorrect |
25 ms |
3452 KB |
Output isn't correct |
24 |
Incorrect |
27 ms |
3460 KB |
Output isn't correct |
25 |
Incorrect |
22 ms |
3268 KB |
Output isn't correct |
26 |
Incorrect |
28 ms |
3452 KB |
Output isn't correct |
27 |
Incorrect |
24 ms |
3452 KB |
Output isn't correct |
28 |
Incorrect |
25 ms |
3284 KB |
Output isn't correct |
29 |
Incorrect |
26 ms |
3456 KB |
Output isn't correct |
30 |
Incorrect |
20 ms |
3452 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 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
2 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
3 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
5 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
7 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
8 |
Incorrect |
0 ms |
2392 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
10 |
Incorrect |
0 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 |
6 ms |
2684 KB |
Output isn't correct |
17 |
Incorrect |
6 ms |
2544 KB |
Output isn't correct |
18 |
Incorrect |
6 ms |
2540 KB |
Output isn't correct |
19 |
Incorrect |
6 ms |
2544 KB |
Output isn't correct |
20 |
Incorrect |
5 ms |
2664 KB |
Output isn't correct |
21 |
Incorrect |
26 ms |
3220 KB |
Expected int32, but "10000100000" found |
22 |
Incorrect |
26 ms |
3368 KB |
Expected int32, but "10000100000" found |
23 |
Incorrect |
25 ms |
3444 KB |
Expected int32, but "10000100000" found |
24 |
Incorrect |
25 ms |
3436 KB |
Expected int32, but "10000100000" found |
25 |
Incorrect |
22 ms |
3456 KB |
Expected int32, but "10000100000" found |
26 |
Incorrect |
25 ms |
3456 KB |
Expected int32, but "10000100000" found |
27 |
Incorrect |
31 ms |
3452 KB |
Expected int32, but "10000100000" found |
28 |
Incorrect |
25 ms |
3332 KB |
Expected int32, but "10000100000" found |
29 |
Incorrect |
25 ms |
3448 KB |
Expected int32, but "10000100000" found |
30 |
Incorrect |
20 ms |
3420 KB |
Expected int32, but "10000100000" found |
31 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |
32 |
Incorrect |
1 ms |
2392 KB |
Output isn't correct |