Solutions to ACM ICPC programming competition questions