#t235. 电影排序
电影排序
Movie Sorting
Problem Description
Little is on winter break and plans to watch movies, . He likes things to "get better and better", so he wants to save the good movies for later.
Given the ratings of the movies , sort them from low to high by rating and help Little decide the viewing order.
Input Format
Input three integers (), all distinct, representing the ratings of the three movies.
Output Format
Output the integers in ascending order, with a single space between every two of them.
Sample Input 1
80 75 90
Sample Output 1
75 80 90
Sample Input 2
90 80 75
Sample Output 2
75 80 90
Sample Input 3
75 90 80
Sample Output 3
75 80 90
Hint
- Sorting three numbers from low to high — the same trick as the earlier "sort three digits" problem: compare pairs and swap.
- The problem guarantees the three numbers are all distinct, so you don't need to handle equal cases.