Hi everyone,
I was just solving 707D - Persistent Bookcase 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.
:)
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
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.
:)