제출 #1168192

#제출 시각아이디문제언어결과실행 시간메모리
1168192stdfloatGap (APIO16_gap)C++20
30 / 100
31 ms1212 KiB
#include <bits/stdc++.h> #include "gap.h" // #include "grader.cpp" using namespace std; using ll = long long; ll findGap(int T, int n) { ll s = LLONG_MIN, t = LLONG_MAX, mx = 0; for (int i = 0; i < ((n + 1) >> 1); i++) { ll x, y; MinMax(s + 1, t - 1, &x, &y); if (i) mx = max({mx, x - s, t - y}); s = x; t = y; } return max(mx, t - s); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...