Shuffling Cards with Problem Solver 68!
2172H2500· grandmaster2s256 MB⌨ stdin/stdout
Examples
Sample 1of 3
Input
4 2baaabaaabaaabaaa
Output
aaaaaaaaaaaabbbb
Sample 2of 3
Input
4 999999999abcdefghijklmnop
Output
acegikmobdfhjlnp
Sample 3of 3
Input
4 17bbcttckrdezzzbcd
Output
bcckdrbdbecztztz
58%
2172H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)