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 |
Added by: | Ha Minh Ngoc |
Date: | 2021-07-07 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: GOSU |