Submit solution

Points:
3 (partial)

Time limit:
0.5s

C#
1.5s

Haskell
2.0s

Java
1.0s

Python
2.0s

Memory limit:
3M

C#
28M

Haskell
6M

Python
12M

Authors:

Problem type

##### Brute Force Practice 1 — Easy Version

Given a permutation of the integers , output the permutation after it has been sorted.

#### Input Specification

The first line will contain the integer .

The next line will contain integers, a permutation of the integers .

#### Output Specification

The sorted permutation on a single line.

#### Sample Input

```
3
2 1 3
```

#### Sample Output

`1 2 3`

## Comments

Easier than it looks

Omg the way this question phrases the goal is just down right dirty. gawd XD

OMG, finally got there with python - and learned something new which I guess is the point :)

Why is my solution outputting wrong answers? It was fine until I made a change to save memory.

make some of your own test cases, read the question , be sure not to miss out on any

`important properties`

of this question, and the reason you are getting`WA`

is simply because your program is incorrectGot it. But there still is a memory issue

Can someone tell me what's wrong with my java code? Thanks.

Regarding the question, it states that you are given a

permutationof the integers to . This is the best hint I can give you: don't try to sort the integers or store it in an array. The memory limit for java is 3 MB.The point of this question is to read it very, very carefully. Good luck!

I thought List Minimum (Easy) would be easy, but no.

First memory limit, then wrong answer. I can agree.

I keep on getting

`Memory Error`

.That means you are using too much memory, read the question carefully

OMG it's so tricky lolllllll

The biggest problem in this question is to fully understand the question

Tip for anyone that's having issues with this question: reread the problem statement.