#P2090. 数字对
数字对
Description
For a number pair , in one operation we can transform it into or .
Given a positive integer , find the minimum number of operations to transform the pair into a pair in which at least one number is .
Input Format
One line containing a positive integer .
Output Format
One integer representing the answer.
5
3
Hint
Sample explanation:
For of the testdata, .
For of the testdata, .
For of the testdata, .
Translated by ChatGPT 5
京公网安备 11011102002149号