Static Tree

You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver...

Ajob Commute II

Once again we return to Ajobshohor, the capital city and the heart of Ajobdesh. Ajobshohor’s road sy...

Magical Tree Query

You are given a rooted tree (a connected graph with no cycles) with n vertices. The vertices are nu...