注意事項:
1.有超長測資=>long long
2.規律//a/b > 0//a>b => even (a/b = 1+ f(n/2)).........1 n*2//a<b => odd (a/b = 1 / f(n-1)(even))...0 n+1
下滑看更多
3.可逆推,舉例:1, 3=>3, 1(+1)=>2, 1(*2)=>1, 1(*2)由*2*2+1得5若從4, 3, 則4,3=>1,3(*2)k = 10核心程式: