by@n4o847
AC
793ms
#!ruby -p $_[I||=$_=~/T/]=?T $_[/K */]&&=?K*$&.size
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 T T T T T T T T T T T T T KKKKT