Hint 1

Hint 1 (answer)

Hint 2

Hint 2 (answer)

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!