문제
풀이 및 답
#!/bin/python3
t1, t2, n = map(int, input().split())
modified_fibonacci_sequence = [t1, t2]
for i in range(2, n):
modified_fibonacci_sequence.append(modified_fibonacci_sequence[i - 2] + modified_fibonacci_sequence[i - 1] * modified_fibonacci_sequence[i - 1])
print(modified_fibonacci_sequence[n - 1])