Compare commits

...

2 Commits

Author SHA1 Message Date
sairate 15bdf848b6 Signed-off-by: sairate <sairate@sina.cn> 2024-07-12 17:12:53 +08:00
sairate 36ffc65018 Signed-off-by: sairate <sairate@sina.cn> 2024-07-11 18:36:28 +08:00
2 changed files with 14 additions and 0 deletions

1
test.py Normal file
View File

@ -0,0 +1 @@
input("提示:")

13
角谷猜想.py Normal file
View File

@ -0,0 +1,13 @@
def jiaogu(n):
if n==1:
print("END")
return 1
if n%2==0:
print(n,"/",2,"=",n//2,sep="")
jiaogu(n//2)
else:
print(n, "*", 3, "+",1,"=", n*3+1, sep="")
jiaogu(n*3+1)
n=int(input())
jiaogu(n)