제출 #560884

#제출 시각아이디문제언어결과실행 시간메모리
560884fdnfksdGap (APIO16_gap)C++14
30 / 100
47 ms1864 KiB
#include<bits/stdc++.h> #include "gap.h" using namespace std; using ll = long long; ll a[100009]; ll findGap(int t, int n) { if(t==1) { a[0]=-1; a[n+1]=2e18+10; ll i=1,j=n; while(i<=j) { MinMax(a[i-1]+1,a[j+1]-1,&a[i],&a[j]); i++; j--; } ll res=0; for(int i=2;i<=n;i++) res=max(res,a[i]-a[i-1]); return res; } }/* int main() { findGap(); }*/

컴파일 시 표준 에러 (stderr) 메시지

gap.cpp: In function 'll findGap(int, int)':
gap.cpp:24:1: warning: control reaches end of non-void function [-Wreturn-type]
   24 | }/*
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...