solve poj2376
solve poj1328
solve poj3190
solve poj1017
solve poj1862