http://www.lydsy.com:808/JudgeOnline/problem.php?id=1026 这道题是一道简单的数位dp,适合入门 代码请看:http://tsyao.tk/?p=55