Money Money
CodeChefOpen on judge ↗
Mr RR is a top coder and has got an internship in Stark Industries Ltd. Since he is a top coder,Mr Stark assigns him a number $X$, and asks him to come to work only on the day which is a multiple of $X$. He joins the firm on 1-st day but starts working from $X$-th day. He is paid exactly the same amount in Dollars as the day number. For example, if he has been assigned X=3, then he will be paid
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