by@akouryy1
WA
3052ms
print$a=<>;<>;$c=$_,print$a for<>;$_=$a^$c;tr/\0/ /;s/t *k|k */$&=~s{ }{*}r/e;print
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 T T T T T T T T T k* t