poj1182 参考别人代码才想明白。 poj2254 独自做出的水题。 转载于:https://www.cnblogs.com/xinsifeihong/archive/2012/08/12/2635425.html