I did the exact same thing as given in editorial, can you please give me a test case where this code fails:
https://www.codechef.com/viewsolution/32056884
Please let me know my mistake
Thanks
I did the exact same thing as given in editorial, can you please give me a test case where this code fails:
https://www.codechef.com/viewsolution/32056884
Please let me know my mistake
Thanks
I’m also stuck with WA. Btw try this:
Input:
10
adefb
bdefa
abcdef
absdef
abcdefg
abxyzfg
nitish
shweta
abcdefghi
dbfgefghs
abcdef
abcxyz
abcdef
abcdef
bbabbccaabcccacabcbc
ccbbbcbabcaccabbaccc
a
a
a
b
output:
4
1
3
6
9
3
0
19
0
1