Home > Back-end >  The sort function overloading, a great god, please help the problem solving which, if you can, to ex
The sort function overloading, a great god, please help the problem solving which, if you can, to ex

Time:09-30

The sort function overloading

Description

By the same name from small to large sorting: sort function
The number of two double sorting
The number of three double sorting
The number of four double sorting
N the number of double sorting
Two string sorting
N the sorting of the string

Enter

To sort the four doubles a b c d
A n, said sorting number n and n string
N doubles
N no Spaces string

O

The ranking results of c d
The ranking results of b c d
The ranking results of a b c d
The number of input of n double sorting the results
The ranking results of the n input string

The sample input

5.6 7.8 0.9 4.0
4
8 and 9 0
7.8China Wuhan Jiayou Beijing

Sample output

0.9-4
0.9 7.8-4
4 0.9 5.6 7.8
7.8 8 and 9 0
Beijing China Jiayou Wuhan
  • Related