solutions to OnlineJudge problem sets