素手就琴
发表于 2020-6-9 15:34:41
temp = 1
peach = 6
while peach > 5 and temp:
p = peach
for i in range(5):
x = p
if (p-1) % 5 ==0 and p-1 > 0:
p = 4*(p-1)//5
temp = 0
else:
temp = 1
peach += 1
break
if not temp:
print(peach)
junsitu9159
发表于 2020-6-11 02:35:27
def peach(x):
j = 1
while x != 0:
j = j *5 +1
x -= 1
print("第%d天有%d个桃"%(x+1,j))
peach(5)
轩慕云
发表于 2020-6-11 07:13:36
n1 = 1
n5 = 1
tx = 0
while n1%4 != 0 :
tx = n5*5+1
n5 += 1
for i in range(1,6):
tx = tx/4*5+1
n1 = tx
else:
print(n1)
菜鸟{:10_250:}才学几天,见谅
小陨aoq
发表于 2020-7-23 16:05:08
学习学习
sun8061
发表于 2021-1-4 10:44:21
学习。