Codeforces Round #457(Div.2)Problem E Jamie and Tree(DFS序+倍增算法+LCA+树状数组)
E.JamieandTreetimelimitpertest2.5secondsmemorylimitpertest256megabytesinputstandardinputoutputstandardoutputToyoursurprise,Jamieisthefinalboss!Ehehehe.Jamiehasgivenyouatreewithnvertices,numberedfrom1t