c++ solutions of some problems from COJ.