I need help on a Usaco question, my code runs ok for the first 5 testcases. How do i optimize this (my code is brute force), and reduce the search space. Here is the link, h