#include using namespace std; int main(){ ios_base::sync_with_stdio(false); cin.tie(nullptr); int N,L; cin >> N >> L; int K; cin >> K; vector A(N); for(auto &a : A) cin >> a; A.insert(A.begin(),0); A.push_back(L); N++; int low = 0,high = 1001001001; while(high-low > 1){ int mid = (high+low)/2; vector To(N,-1),C(N,N+1); int pos = 0; for(int i=0; i A.at(pos)) pos++; if(pos > N) break; To.at(i) = pos; C.at(i) = pos-i; } for(int i=N-2; i>=0; i--) C.at(i) = min(C.at(i),C.at(i+1)); bool ok = false; for(int i=0; i