cf/mirror

Shuffling Cards with Problem Solver 68!

CF
2172H2500· grandmaster2s256 MB⌨ stdin/stdout

Examples

Sample 1of 3
Input
4 2
baaabaaabaaabaaa
Output
aaaaaaaaaaaabbbb
Sample 2of 3
Input
4 999999999
abcdefghijklmnop
Output
acegikmobdfhjlnp
Sample 3of 3
Input
4 17
bbcttckrdezzzbcd
Output
bcckdrbdbecztztz
2172H.cpp
loading editor…
Ln 11·137 BGNU C++20 (64)