add uva1199, icpcarchive2949, poj1771