← All problemsSign in

Snow Leopard and ranks of contests

Snow Leopard has proposed an algorithm for calculating rating of the contestant on codechef. The algorithm can be described as follow: The rating for the first time and second time paritcipation is fixed for the contestant. Rating for the next participation onwards will depend on previous two ratings. The dependecies is such that the rating for the current participation is c(integer) more than n(

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