[树上最长链][tarjan][单调队列][环上前缀和] Jzoj P5905 黑暗之魂(darksoul) [树上最长链][tarjan][单调队列][环上前缀和] Jzoj P5905 黑暗之魂(darksoul)