poj1986  详见http://blog.sina.com.cn/s/blog_7812e9860100wdjq.html