Subham and Surya
CodeChefOpen on judge ↗
Subham and Surya are friends.Subham decided to gift a bot on Surya's birthday.So he went to a shop where there were N-1 bots each having a number from 2 to N. After going there he saw that all bots were trying to kill each other, then he noticed that bots with number Y are killing the bots with number 2Y,3Y,4Y,5Y.....After some time the killing stopped and some bots didn't get killed. After seein
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