C++ code for ACM/ICPC