Miscellaneous Programming Contest Problems (in C++)