答案正确最后wa...
查看原帖
答案正确最后wa...
1252174
nlhzh1818楼主2024/8/30 16:49
num=0
while True:
    num+=1
    numstr=str(num)+str(num*2)+str(num*3)
    if numstr.count("1")==1 and numstr.count("2")==1 and numstr.count("3")==1 and numstr.count("4")==1 and numstr.count("5")==1 and numstr.count("6")==1 and numstr.count("7")==1 and numstr.count("8")==1 and numstr.count("9")==1:
        print(str(num)+" "+str(num*2)+" "+str(num*3))
        break
2024/8/30 16:49
加载中...