add poj1744, modify poj1771, uva1199, icpcarchive2949