Shopping

When doing shopping, it’s petty hard to make a decision when the choice is big. You would like to buy a new phone, and after choosing a category of mid-range phones, you see that the specs are more or less the same but the prices can be different.
You decide to sort the unique prices to better understand the price range and what the market offers.
The input contains prices separated by a space.
The program should print the unique prices in increasing order.
Input
Output
200 400 200 350 250 250 600
200 250 350 400 600
 

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue