Sort Three Numbers
Points 2 0.5s 256MGiven three integers \(A\), \(B\), and \(C\), output them in descending order.
Input
The input consists of a single line containing three integers \(A\), \(B\), and \(C\).
Constraints
- \(-10^9 \le A, B, C \le 10^9\)
Output
Output one line containing the three integers sorted from largest to smallest.
Sample Input 1
1 2 3
Sample Output 1
3 2 1
Sample Input 2
1000000000 -1000000000 1000000000
Sample Output 2
1000000000 1000000000 -1000000000
Log in to write and submit code.
Log in