Finish Poj 1860

http://www.cnblogs.com/mobileliker/p/4097785.html