Can anyone help me understand this problem: http://codeforces.com/problemset/problem/930/B I mean can't vasya ask all letters(which will give probability 1) ? I know i am wrong,Please if someone could clarify the question. Thanks in advance!! Edit:Sorry to reopen it.But i am now having difficulty in understanding the approach for the question,also cant understand the editorial.And also can someone explain how the answer for string: bbaabaabbb is 0.1? asked 16 Mar '18, 21:59

The question has been closed for the following reason "The question is answered, right answer was accepted" by vivek_1998299 19 Mar '18, 09:13
What I could gather from the statement was
Eg, if string is abcdef. Say its left shifted to become defabc. Initially the new string, to Vasya is like $??????$ , then the first letter reveals to $d?????$. She can uncover any letter and uniquely determine $K$. For string tictic , initially its $??????$ , then first letter revealed $t?????$. If she opens up second letter, string will be $ti?????$ and $K$ can be either 0 or 3, i.e. cannot be uniquely determined. (IDK if Q allows K=0, its here just for example.) answered 17 Mar '18, 00:41
