poj problem solve