solutions for selected problems of POJ