Rihanna and Fibonacci
CodeChefOpen on judge ↗
Problem description. Rihanna wonders why the starting numbers of Fibonacci series are always 0 and 1. She didn’t like that and thus want to change the starting numbers. So given the 1st and 2nd numbers of series as a and b respectively. Find out the ‘r’ th number in the series for given r. Input First line has integer T, the number of test cases Next T lines contain T test cases each line co
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.
Sign in to chat with the tutor and save your progress.
Sign in to start