12 人解决,21 人已尝试。
14 份提交通过,共有 74 份提交。
6.4 EMB 奖励。
单点时限: 1.0 sec
内存限制: 512 MB
Consider the following function
function f(X):
iterations := 0
while X is not 1:
if X is even:
divide X by 2
else:
add 1 to X
add 1 to iterations
return iterations
It can be shown that for any positive integer
Given an interval
The first and only line of input contains two integers
Output the result
1 127
1083
74 74
11
12 人解决,21 人已尝试。
14 份提交通过,共有 74 份提交。
6.4 EMB 奖励。