C++Templates For ACM Contest~