by@paradigm_9
AC
3150ms
s=`dd` puts s.gsub(/\n.{#{s=~/T/}}/,"\\0T").sub /K */{|y|"K"*y.size}
T K
T T T T T T KKKKKT
0+1 records in 0+1 records out 357 bytes copied, 3.3628e-05 s, 10.6 MB/s