National Informatics OlympiadNational RoundRazgrad, 26 to 28 April, 2013Group D, 6th gradeTask D2. Present yourConsider the infinite number of integers 1, 2, 3, 5, 8, 13, ..., in whichthe first two numbers are 1 and 2, and each subsequent equal to the sum of the two numbers recordedas neighboring right before him in the lineup.Write a program pres, which represents the entered number as a sum of somenumbers from issue number in which each number it can participate atmany once and can participate in two consecutive numbers of the sequence.Input: An integer greater than 0 and less than 1000000000.Output: One possible representation alleging as a sequence of goalsnumbers, joined by the sign '+' and arranged in ascending order. Before the first number does notdisplayed '+' sign and the outcome should not have spaces. Any number of inputs mayto be presented in the manner described.Example 1Login:3Output:3Example 2Login:11Output:3 +8Example 3Login:17Output:1 +3 +13
đang được dịch, vui lòng đợi..
![](//viimg.ilovetranslation.com/pic/loading_3.gif?v=b9814dd30c1d7c59_8619)