cf/mirror

Counting Sort?

CF
2222H3500· legendary gm8s1024 MB⌨ stdin/stdout

Examples

Sample 1of 1multi-test • hover to link
Input
6
2 5
2 2
5 6
4 5 1 4 5
7 7
7 6 5 5 6 7 6
11 7
5 8 9 10 11 4 10 11 7 8 11
12 7
12 12 12 12 12 12 12 12 12 12 12 12
5 10
0 0 0 0 1
Output
2 1 2 2 2
2 4 14 60 554 395
2 6 35 627 63856 171611 490235
2 10 83 10495 286935908 71004446 630281080
2 11 132 48996 207819517 474452948 13828302
1 1 0 0 0 0 0 0 0 0
2222H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)