by@n4o847
AC
1299ms
sed '1h ${:1 x s/ $// t1 x :2 s/K /KK/ t2 h } g'
T K
T T T T T T T T T T T T T T T T T T T T T T T T T KKKKKKKKKKKKKKKKKKKKKKKKKK