Submit | All submissions | Best solutions | Back to list |
EI20213Q1 - Sort Numbers |
Given a list of integers, output the list in ascending order. If two numbers are equals, keep the order of them in the input.
Input
- The first line contains one integer N - the number of integers (1 £ N £ 105).
- The next line contains N integers which do not exceed 109.
Output
Include N lines, each line is an integer and the its index in the input.
Sample
https://drive.google.com/file/d/1EzeQ9kCyHqClAZZUheiz-0V-6B4gSi11/view?usp=sharing
Input |
Output |
5 4 1 0 2 1
|
0 2 1 1 1 4 2 3 4 0 |