My code of solving USACO TRAINING problems from chapter 3.