This is my usaco solutions