Problem Statement is here: http://usaco.org/index.php?page=viewproblem2&cpid=1063
I\'m a python user, and I can\'t figure out how to solve this problem efficientl