Блог пользователя hg11110000

https://codeforces.com/contest/1509/problem/B --> Can anyone help in telling in which test case this solution gives wrong answer ??

Автор hg11110000, история, 3 года назад, По-английски

https://codeforces.com/contest/1509/submission/113240196

My logic :-

At a particular position of M...i saw whether there are atleast required number of T's in left and right

  • Проголосовать: нравится
  • -27
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится +5 Проголосовать: не нравится

It will be better if you shared your logic rather than your code. It's hard to review someone else's code.

»
3 года назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Yes, I can help. Your solution gives wrong answer at second test case. :)

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Try this:

1
12
TMMTTTTTTMMT