Practice problems and solutions to poj.org.