solve poj2393
solve poj3262