C/C++ 编程代写
当前位置:以往案例 > >案例C语言加急美国英文:Radix Sort
2018-01-06

A. Radix Sort

题目描述

Given a sequence of numbers separated by commas, you are required to sort them by radix sort. Output the step results of each pass.

Input
2 line
the first line is a sequence of numbers(<20) separated by commas; the second line is the step pass number(<5).

Output
1 line
the sequence of the pass separated by commas

输入样例

5,2,21,

1

输出样例

21,2,5,

图片2.png


在线提交订单