cf/mirror

Multiple Testcases

CF
1342D1900· candidate master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 4
Input
4 3
1 2 2 3
4 1 1
Output
3
1 2
2 1 3
1 2
Sample 2of 4
Input
6 10
5 8 1 10 8 7
6 6 4 4 3 2 2 2 1 1
Output
2
3 8 5 7
3 10 8 1
Sample 3of 4
Input
5 1
1 1 1 1 1
5
Output
1
5 1 1 1 1 1
Sample 4of 4
Input
5 1
1 1 1 1 1
1
Output
5
1 1
1 1
1 1
1 1
1 1
1342D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)