poj 1845 http://blog.csdn.net/lyy289065406/article/details/6648539 转载于:https://www.cnblogs.com/Missa/archive/2012/08/01/2618958.html