USACO beads
categorize solution by OJ