You are not logged in. Please login at www.codechef.com to post your questions!

×

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??

asked 22 Sep '18, 16:02

dilip2812's gravatar image

2★dilip2812
112
accept rate: 0%

edited 22 Sep '18, 16:06


@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.

link

answered 22 Sep '18, 19:55

joffan's gravatar image

5★joffan
9488
accept rate: 13%

toggle preview
Preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • 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