UVa Solutions in C