- 分享
2023/12/3 11:27
- 2023-12-3 11:27:45 @
#角谷猜想
n=int(input())
while(n != 1):
if n %2 ==0:
n=n/2
else:
n=n*3+1
n=int(n)
print(n)
0 comments
No comments so far...
By signing up a HydroOJ universal account, you can submit code and join discussions in all online judging services provided by us.