Ferrarixxx's blog

By Ferrarixxx, history, 4 years ago, In English

Sorry to Disturb you but this time i have no idea where i am wrong

My Code : Approach Same as that of Editorial

Problem Link : Problem E Omkar and Duck

Editorial Link

It shows some error that i can't understand and moreover i can't debug this since i don't know the path the tester program has chosen.
So Please Help me out here.

Hoping for a Prompt Reply. :)

  • Vote: I like it
  • +13
  • Vote: I do not like it

| Write comment?
»
4 years ago, # |
Rev. 2   Vote: I like it +5 Vote: I do not like it

If you look at the test case, the input contains all of the paths that the interactor uses, so you can use that to debug.

  • »
    »
    4 years ago, # ^ |
    Rev. 2   Vote: I like it 0 Vote: I do not like it

    Hi,
    Thanks for commenting, Finally some support!

    Here,
    I don't understand how you expect me to get the path.
    The only input i get is a value.

    Anyways you are such a great coder!!
    Can you please help me identify my mistake by looking at the code ?? :)

    Please ?

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

      You need to look at the actual testcases under your submission.