Problem Link: VOWMTRX Problem - CodeChef
I had 4 WA because I took literally the sentence; “Determine the number of ways you can slice the string…” from the description. At the examples there is one: 3 1 “neo”, which of course can be sliced once between e and o, hence Answer = 1. But if you take say 3 1 “nem”, it can’t be sliced anywhere, therefore the answer should be “0”, that’s what I thought. Only after the contest I checked in solutions and saw that nobody else cared for answer = 0, everybody took 1. Did anybody else have this problem? Thanks.