#include <bits/stdc++.h>
#define ll long long
using namespace std;
const long long INF = 2e9;
long long MOD = 1e9+7;
void MinMax(ll ,ll ,long long &,long long &);
void MinMax(ll s,ll t,long long &mn,long long &mx){
// cout<<s<<" "<<t<<endl;
// cin>>mn>>mx;
}
long long findGap(int,int);
long long findGap(int t,int n){
ll l=0,r=1e18;
ll res=0;
ll l1=1e18,r1=0;
while(l<r){
MinMax(l+1,r-1,l,r);
if(r!=-1){
res=(res<r1-r ? r1-r : res);
res=(res<l-l1 ? l-l1 : res);
}
if(l==-1)
res=(res<r1-l1 ? r1-l1 : res);
r1=r,l1=l;
if(l==-1)break;
}
return res;
}
//int main(){
// cout<<findGap(1,4);
//}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
2 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
3 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
4 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
5 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
6 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
7 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
8 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
9 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
10 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
11 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
12 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
13 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
14 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
15 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
16 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
17 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
18 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
19 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
20 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
21 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
22 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
23 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
24 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
25 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
26 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
27 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
28 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
29 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
30 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
31 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
32 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
2 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
3 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
4 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
5 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
6 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
7 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
8 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
9 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
10 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
11 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
12 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
13 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
14 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
15 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
16 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
17 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
18 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
19 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
20 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
21 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
22 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
23 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
24 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
25 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
26 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
27 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
28 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
29 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
30 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
31 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |
32 |
Execution timed out |
2000 ms |
5144 KB |
Execution timed out |