#2833. list小练习
list小练习
Background
使用list建立数据域为int的链表,从键盘中输入10个数字,并从大到小排序后输出。
tips: 用stl库函数来实现。
Input
输入一行10个整数
Output
按要求输出
Samples
5 1 4 7 3 6 9 2 8 10
10 9 8 7 6 5 4 3 2 1
Limitation
无
使用list建立数据域为int的链表,从键盘中输入10个数字,并从大到小排序后输出。
tips: 用stl库函数来实现。
输入一行10个整数
按要求输出
5 1 4 7 3 6 9 2 8 10
10 9 8 7 6 5 4 3 2 1
无
By signing up a 黑猫OJ universal account, you can submit code and join discussions in all online judging services provided by us.