Comments

There's a mistake on tutorial of problem C. In the bullet point it says that r should come before but the equation (p ≤ r ≤ n / 2) says the opposite, so just swap the "before" and "after" in the bullets and happy AC :)

On Arpa[Tutorial] Sack (dsu on tree), 8 years ago
0

What is col[v]?