Find file History
Latest commit 30923d1 Jun 24, 2016 @cuklev cuklev New sample tests format
Permalink
..
Failed to load latest commit information.
tests Add sample tests Jun 14, 2016
README.md New sample tests format Jun 24, 2016

README.md

Sort 3 numbers

Description

Sort 3 real values in descending order. Use nested if statements.

Note: Don’t use arrays and the built-in sorting functionality.

Input

  • The input will consist of an array containing three values represented as strings

Output

  • The output should be a single line containing three numbers separated by spaces

Constraints

  • Time limit: 0.2s
  • Memory limit: 16MB

Sample tests

Sample test 1

Input

['5', '1', '2']

Output

5 2 1

Sample test 1

Input

['-2', '-2', '1']

Output

1 -2 -2

Sample test 2

Input

['-2', '4', '3']

Output

4 3 -2

Sample test 3

Input

['0', '-2.5', '5']

Output

5 0 -2.5

Sample test 4

Input

['-1.1', '-0.5', '-0.1']

Output

-0.1 -0.5 -1.1

Sample test 5

Input

['10', '20', '30']

Output

30 20 10

Sample test 6

Input

['1', '1', '1']

Output

1 1 1