Result

AC

Duration

4537ms

Code [DL]

type R<S>=S extends`${infer _}tok${infer Z}`?`T${R<Z>}`:``
export default R

stdin

tokyokyokyotototokyototototokyokyotokyokyokyotokyo

stdout

TTTTT

stderr

strace