![](/img/trans.png)
[英]Python: Code to find a number where first N digits are divisible by N (from 0-9)
[英]How can I find the smallest number of n digits that is not divisible by 3?
作为输入,您将获得数字 n。 您应该 output 不是以零开头或结尾的最小 n 位数,并且在所有数字系统中都不能被 3 整除。
我的主要问题是我不知道,我怎样才能只从 n 位中找到数字,没有它所有的尝试都是无用的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.