#P1812. TMT Document
TMT Document
题目描述

输入格式

输出格式

样例
5
3
TMT
3
MTT
6
TMTMTT
6
TMTTTT
6
TTMMTT
YES
NO
YES
NO
YES
提示
note:
原题链接:https://codeforces.com/problemset/problem/1509/B
转录:计科20-2王哲



5
3
TMT
3
MTT
6
TMTMTT
6
TMTTTT
6
TTMMTT
YES
NO
YES
NO
YES
note:
原题链接:https://codeforces.com/problemset/problem/1509/B
转录:计科20-2王哲