Initial release
This commit is contained in:
10
Herculito 2 l'Hydre de Lerne.py
Normal file
10
Herculito 2 l'Hydre de Lerne.py
Normal file
@@ -0,0 +1,10 @@
|
||||
heads = 8188
|
||||
|
||||
coup = 0
|
||||
while heads > 0:
|
||||
coup = coup + 1
|
||||
heads = heads // 2
|
||||
if heads%2 != 0 and heads > 1:
|
||||
heads = heads * 3 + 1
|
||||
|
||||
print(coup)
|
||||
Reference in New Issue
Block a user