← All problemsSign in

Fibonacci concatenation

CodeChefRating 2508Open on judge ↗

Let's define Fibonacci concatenation sequence as follows: - $f[0] = 0$, $f[1] = 1$ - $f[i] = f[i-1] + f[i-2]$, for every $i \geq 2$ Here $f[i]$ denotes the $i^{th}$ Fibonacci concatenation number and $+$ represents concatenation. For example, $f[2] = f[1] + f[0] = 1 + 0 = 10$, $f[3] = f[2] + f[1] =$ $10 + 1 = $ $101$. Given an integer $n$, you have to determine the sum of digits of all subseq

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start