hg11110000's blog

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

By hg11110000, history, 3 years ago, In English

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

  • Vote: I like it
  • -27
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it +5 Vote: I do not like it

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

»
3 years ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

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

»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Try this:

1
12
TMMTTTTTTMMT