# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1084123 | Ibrohim0704 | Gap (APIO16_gap) | C++14 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include <bits/stdc++.h>
using namespace std;
int main(){
int n,k;
vector<int> a(k);
for(int i=0;i<k;i++){
cin>>a[i];
}
int ans=0;
for(int i=1;i<n;i++){
ans=max(ans,a[i]-a[i-1]);
}
cout<<ans;
}