Hint 1

Hint 2

Official Analysis (Italian)

Solution

Solution

Join the USACO Forum!

Stuck on a problem, or don't understand a module? Join the USACO Forum and get help from other competitive programmers!