Various short programming problems from PEG website (CCC, etc.)