#P1963. One of Each
One of Each
题目描述
输入格式
AS shown in the PDF.
输出格式
AS shown in the PDF.
样例
6 3
3
2
1
3
1
3
2 1 3
10 5
5
4
3
2
1
4
1
1
5
5
3 2 1 4 5
提示
sourced from 2019 ACM Southeast USA regional(10小时马拉松赛)
by QLU_杨光耀