Solutions to ACM ICPC - style problems