需要一些帮助来用Python编写一个持久性数字程序来确定具有持久性的最小非负整数 (715--->;35--->;15--->;5),3,4,5,6,7。输出格式如下:
The smallest integer with a persistence of 3 is: 39
The smallest integer with a persistence of 4 is: xx
The smallest integer with a persistence of 5 is: xxx
The smallest integer with a persistence of 6 is: xxxx
The smallest integer with a persistence of 7 is: xxxxx
任何代码链接或线索将不胜感激,谢谢。在
相关问题 更多 >
编程相关推荐