Confusion regarding the shibu and string game problem in code incognito .Problem Code: PRISTG

if the i/p is as follows : abcd spaebcd
then for all the correct submissions we get answer : 4
whereas answer should be : 6
it doesn’t count the substrings : cd and bcd which are also present in the string.
why is that??

1 Like

@admin please investigate - it looks like the testcases for PRISTG may be broken, as I noted previously:

My (post-contest) submission for PRISTG here was marked incorrect; however the only marked-correct Python submission is extremely similar but fails to test the last character in the string so:


returns 0 instead of 1 and


returns 1 instead of 3.