by@n4o847
AC
2529ms
puts `dd`.gsub(/[^T]{50}\K./,"T").sub /K */{|y|"K"*y.size}
T K
T T T T T KKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKKT
0+1 records in 0+1 records out 306 bytes copied, 0.0002199 s, 1.4 MB/s