• + 1 comment

    For each of the Q queries, print the number of paths in T having cost C in the inclusive range [L, R] on a new line.

    ^ That is an ambigious sentence. Can you please elaborate?