My solutions to the problems from several OJ sites. (C++)