# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
199809 | Gamma | Pismo (COCI18_pismo) | C++14 | 63 ms | 376 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 N, n, mn = 2000000009, m;
int main()
{
cin >> N;
for(int i = 0; i < N; i++)
{
cin >> n;
if(i) mn = min(mn, abs(n - m));
m = n;
}
printf("%d\n", mn);
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |