cf/mirror

Ball Sorting

CF
1839D2100· master2s256 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
3
6
2 3 1 4 6 5
3
1 2 3
11
7 3 4 6 8 9 10 2 5 11 1
Output
3 2 2 2 2 2
0 0 0
10 5 4 4 4 4 4 4 4 4 4
1839D.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)