#P1755. 斐波那契的拆分
斐波那契的拆分
Description
It is known that any positive integer can be decomposed into several Fibonacci numbers. Now, you are asked to find a decomposition of .
Input Format
The first line contains an integer , the number of test cases.
Then follow lines, each containing an integer (as described).
Output Format
Output lines. Each line contains a string representing a decomposition in the format , and the summands must be listed from small to large.
1
1
1=1
1
10
10=2+8
Hint
If there are multiple valid decompositions, choose the one with the fewest summands. If there is still more than one, output the one whose rightmost summands are as large as possible.
For of the testdata, , .
Translated by ChatGPT 5
京公网安备 11011102002149号