poj_1182 ac code