M.A.H.M.O.O.D's blog

By M.A.H.M.O.O.D, history, 7 years ago, In English

Hi everyone,

I was just solving 707D - Персистентный шкаф and I got WA on test 9.

I really have no idea what's wrong with my solution could somebody please help me to debug it I've tried real hard but to no avail.

my code 22511356.

Thank you for reading.

:)

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

»
7 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

Maybe you should not print the answer immediately, but store it in an array. Because you need to output the answers in the order of the queries, not in the DFS order. 22512177

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

    Oh my god thank you very much man, I'm so stupid...don't think I'll ever reach Div 1.

    Still thanks very much.

    :)