Code for UVa Online Judge problems