# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
199809 |
2020-02-03T13:21:59 Z |
Gamma |
Pismo (COCI18_pismo) |
C++14 |
|
63 ms |
376 KB |
#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 |
1 |
Correct |
5 ms |
256 KB |
Output is correct |
2 |
Correct |
5 ms |
256 KB |
Output is correct |
3 |
Correct |
6 ms |
256 KB |
Output is correct |
4 |
Correct |
6 ms |
256 KB |
Output is correct |
5 |
Correct |
60 ms |
376 KB |
Output is correct |
6 |
Correct |
63 ms |
376 KB |
Output is correct |
7 |
Correct |
59 ms |
256 KB |
Output is correct |