← All problemsSign in

Fibonacci Wars II

Chef now wants to revenge the bombings on his city (see IOPC15I ). He is planning to launch a missile to the Fibonazi's country. For calculating the configrations of the missile, he needs to solve Fibonomial equations. The nth Fibonomial (Sn) of order k is a polynomial in x given by Where Fj is the jth Fibonacci number (F0 = 0, F1 = 1, and so on). He needs your help in evaluating the polynomial a

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