poj_3009 ac code