猴子分桃—Python

def f():
    for i in range(3120,4000):
        flag = 1
        k=i
        for j in range(5):
            if i%5==1:
                i=(i//5)*4
            else:
                flag=-1
                break
        if flag==1:
            print(k)
f()

 

posted @ 2018-08-05 20:10  Iving  阅读(975)  评论(0编辑  收藏  举报