Parallel Swaps Sort
1909H3500· legendary gm7s1024 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
52 5 4 1 3
Output
51 41 22 51 44 5
Sample 2of 3
Input
91 2 3 4 5 6 7 8 9
Output
0
Sample 3of 3
Input
106 4 2 3 8 10 9 1 5 7
Output
151 86 91 83 101 101 101 66 96 92 79 105 101 62 91 10
58%
1909H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)