无奈之举,答案正确,最后RE。。。。
查看原帖
无奈之举,答案正确,最后RE。。。。
1252174
nlhzh1818楼主2024/8/30 16:47
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:47
加载中...