Solutions for problems in poj.org