Salary
CodeChefOpen on judge ↗
$Richik$ has just completed his engineering and has got a job in one of the firms at $Sabrina$ which is ranked among the top seven islands in the world in terms of the pay scale. Since $Richik$ has to travel a lot to reach the firm, the owner assigns him a number $X$, and asks him to come to work only on the day which is a multiple of $X$. Richik joins the firm on 1-st day but starts working fro
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