Fibonacci strings generation#8295

Fibonacci strings generation

ثانية
128 ميغابايت
متوسط

Generate the -th Fibonacci string, which is defined by the following recurrence relation:

For example:

f(3) = f(2) + f(1) = (f(1) + f(0)) + f(1) = "b" + "a" + "b" = "bab"

المدخلات

One integer n~(0 \le n \le 20).

المخرجات

Print the -th Fibonacci string.

أمثلة

مثال 1

Loading
Loading

مثال 2

Loading
Loading