Ferrarixxx's blog

By Ferrarixxx, history, 4 years ago, In English

Hi, Thanks for opening this Link :)

Here's the Problem Link: Problem D Link
My Submission Link: Please Click Me

I have Commented my logic which is almost same as that of editorial Very simple

Thanks For Reading

Hoping for a Prompt Reply.

  • Vote: I like it
  • -16
  • Vote: I do not like it

»
4 years ago, # |
Rev. 3   Vote: I like it +8 Vote: I do not like it

Bro I was not able to catch the mistake, but I got a test case where your code failed.

Spoiler
  • »
    »
    4 years ago, # ^ |
    Rev. 3   Vote: I like it +5 Vote: I do not like it

    here is a smaller one.

    Spoiler

    ans = 2 your ans = 3

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      I Have Corrected My code for handling this case
      I had to take Consecutive R starting from first occurance of L

      Like in this case
      RRLLRR
      MY code will start from 0th index
      But it should start processing from first R after any L segment
      i.e from 4th index (O based indexing)

      Still getting WA on 33 Test case WA 33 TestCase

      I have submitted my code to find this case but it hasn't been evaluated uptill now

      Thank You For your Support

    • »
      »
      »
      4 years ago, # ^ |
        Vote: I like it +1 Vote: I do not like it

      Finally Got AC

      Thank You CodeForces Community and Danish_amin_01