← All problemsSign in

Chef vs Chefina

Chef and Chefina are playing a game. Chef is very good in Maths subject. He can quickly calculate the value of any equation given to him. On the other hand Chefina is good at remembering things. She can remember sequences or series of any length. In the game they decided to ask a question to each other, and the one who could not answer the question will lose. Chefina has already answered the Chef’

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