Submission #442358

#TimeUsernameProblemLanguageResultExecution timeMemory
442358IwanttobreakfreePismo (COCI18_pismo)C++98
70 / 70
56 ms1512 KiB
#include <iostream> using namespace std; int main(){ int n,sol=1e9; cin>>n; int v[n]; for(int i=0;i<n;i++)cin>>v[i]; for(int i=1;i<n;i++){ sol=min(sol,max(v[i]-v[i-1],v[i-1]-v[i])); } cout<<sol; }
#Verdict Execution timeMemoryGrader output
Fetching results...