New York Magnets
CodeChefOpen on judge ↗
Abhiram is always playful like a small kid. This time around he has caught his old fascination to play with magnets (sigh!). He then challenges his friend Akshay saying let me test if you still know your basic physics(yeah, he actually said that to Akshay! ). He says, suppose I have these n magnets, and I have a destination wall made of iron. Let the iron wall be at a distance d from where I start
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