Submission #199804

#TimeUsernameProblemLanguageResultExecution timeMemory
199804GammaPismo (COCI18_pismo)C++14
0 / 70
62 ms376 KiB
#include <bits/stdc++.h> using namespace std; int N, n, mx = -(1e9) - 7, mn = (1e9) + 7; int main() { cin >> N; for(int i = 0; i < N; i++) { cin >> n; mx = max(mx, n); mn = min(mn, n); } printf("%d\n", mx - mn); }
#Verdict Execution timeMemoryGrader output
Fetching results...