Programming problems from poj.org