Solutions to problems on UVa Online Judge