add uva12097, poj3122, icpcarchive3635