题目意思没翻译全。
应该在目前的翻译后面再加一句:
求将 sss 变成 ttt 所需的最小操作次数,如果无法将 sss 变成 ttt,输出 −1-1−1。
求将 $s$ 变成 $t$ 所需的最小操作次数,如果无法将 $s$ 变成 $t$,输出 $-1$。