×

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

 1 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?? asked 22 Sep '18, 16:02 11●2 accept rate: 0%

 0 @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: abcd kldm  returns 0 instead of 1 and abcd kcdm  returns 1 instead of 3. answered 22 Sep '18, 19:55 5★joffan 948●8 accept rate: 13%
 toggle preview community wiki:
Preview

By Email:

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×354

question asked: 22 Sep '18, 16:02

question was seen: 83 times

last updated: 22 Sep '18, 19:55