제출 #1110463

#제출 시각아이디문제언어결과실행 시간메모리
1110463TitanicXDzzGap (APIO16_gap)C++17
0 / 100
38 ms2836 KiB
#include "gap.h" #include<bits/stdc++.h> using namespace std; long long findGap(int T, int n) { long long s=-1; long long t=1e18+1; long long x=-1; long long y=-1; long long maxi=LLONG_MIN; while(s<=t){ MinMax(s+1,t-1,&s,&t); if(x!=1){ maxi=max(maxi,s-x); maxi=max(maxi,y-t); } x=s; y=t; } return maxi; }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...