poj-1155.cpp Accepted and Described