POJ 1200 http://blog.chinaunix.net/uid-22263887-id-1778919.html 这个想不出来,特别是sum=sum%N。怎么想都只有N种情况,待我研究研究再来看一看