#P11042. [蓝桥杯 2024 省 Java B] 类斐波那契循环数
[蓝桥杯 2024 省 Java B] 类斐波那契循环数
Problem Description
For an -digit decimal number , we can generate a quasi-Fibonacci sequence . The first terms of are . The -th term of for is . If the number appears in the corresponding quasi-Fibonacci sequence , then is a quasi-Fibonacci cyclic number.
For example, for , the corresponding sequence is . Since appears in , is a quasi-Fibonacci cyclic number.
In the range from to , what is the largest quasi-Fibonacci cyclic number?
This is a fill-in-the-blank question. You only need to compute the result and submit it. The result of this problem is an integer. When submitting the answer, output only this integer. Any extra content will cause you to receive no score.
Input Format
There is no input for this problem.
Output Format
Output one integer per line, representing the answer you computed.
Hint
Translated by ChatGPT 5