What sort of Mathematics codechef is providing?

Thanks for the so called push @vijju123.
At present, I have no plans for taking editorials anytime soon, but you all know how quickly plans can change :stuck_out_tongue:

1 Like

All one needs for plans to change is a little push :wink:

You can’t call that a ‘formula’. It’s just an observation.

Maybe this would be my situation if I try doing editorials and that’s the reason I haven’t tried :joy:
Also you’re are good writer @vijju123 and I am not. Idk how people on discuss sometimes reply saying my explaination was good :sweat_smile:.

I derived the answer for this problem and implemented it correctly using DFS.
Got WA
why??because I used directed tree instead of undirected tree.It was my first tree problem on codechef