프로그래밍_일반/백준
boj 14920
Spadework
2020. 2. 8. 19:55
* Solved 기준 브론즈3 단순 풀이
n,i = int(input()),1
while n!=1:
n,i = 3*n+1 if n%2 else n//2, i+1
print(i)