Ruby solutions to Codeforces problems