← All problemsSign in

The Rating Dilemma

CodeChefRating 909Open on judge ↗

Chef really likes to compete on Codechef, and he has gained an impressive rating of $X$, where $X > 0$. There is also a parallel universe, where ratings on Codechef are negative instead. The only thing that remains unchanged in the parallel universe is Chef's love for competing on Codechef. Chef's rating on Codechef in the parallel universe is $Y$, where $Y < 0$. Due to some cosmic event, the par

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