Submission #176086

#TimeUsernameProblemLanguageResultExecution timeMemory
176086DodaPismo (COCI18_pismo)C++14
0 / 70
16 ms2040 KiB
#include <iostream> #include <string> #include <cmath> #include <algorithm> using namespace std; long long n,a[100005],najm=1000000001,najv; int main () { ios_base::sync_with_stdio(false); cin.tie(NULL); cin >> n; for (int i = 0;i<n;i++){ cin >> a[i]; if (a[i] > najv) najv = a[i]; if (a[i] < najm) najm = a[i]; } cout << najv-najm; return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...