Here is the homework problem for this week: http://www.usaco.org/index.php?page=viewproblem2&cpid=857. It is quite difficult, but do try to think of a solution or a feasible method to find the answer. The problem itself is also a simulation one where you may find it possible to search all cases.
top of page
bottom of page