- p1026 成绩等级2
- niujinyu LV 8 @ 2021-12-05 20:19:40
不会写讲讲
- 198 次查看
- 举报
2 条评论
-
niujinyu LV 8 @ 2021-12-08 20:44:44
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; }
-
#include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; } #include <cstdio> #include <iostream> #include <algorithm> using namespace std; const int N = 1010; int a[N]; int n; int main() { cin >> n; for ( int i = 0; i < n; i ++ ) cin >> a[i]; sort(a, a + n); cout << a[n - 1] - a[0]; return 0; }
-
- 1