草庐IT

洛谷AT4888 题解-伦伦数

题目描述Apositiveinteger XX issaidtobealunlunnumberifandonlyifthefollowingconditionissatisfied:Inthebasetenrepresentationof XX (withoutleadingzeros),foreverypairoftwoadjacentdigits,theabsolutedifferenceofthosedigitsisatmost 11 .Forexample, 12341234 , 11 ,and 334334 arelunlunnumbers,whilenoneof 314153141