poj_1979 ac code