solutions to problems (uva , codechef , project euler)