Result

AC

Duration

4138ms

Code [DL]

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

stdin

tokyototototototokyokyotokyokyokyotokyokyokyotokyo

stdout

TTTTT

stderr

strace