Ba lớn nhất

View as PDF



Problem type
Points: 100 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Nhập số nguyên dương \(N\)\(N\) số nguyên dương. Hãy in ra 3 số lớn nhất theo thứ tự giảm dần.

Input

  • Nhập số nguyeend ương \(N\) (\(1 \leq N \leq 10^5\)).
  • Nhập \(N\) số nguyên dương \(A_i\) (\(1 \leq i \leq N, |A_i| \leq 10^9\)).

Output

  • In ra độ chênh lệch lớn nhất giữa 2 phần tử liên tiếp.

Example

Test 1
Input
5
2 1 3 5 4
Output
5 4 3

Comments

There are no comments at the moment.