← All problemsSign in

Solve the Assignment

CodeChefRating 2664Open on judge ↗

You have been given an assignment by your computer teacher. You need to study interactions among large numbers of very small charged particles. There are N charged particles at regular spacing along a straight line. They can be modelled as the integer points {1,2,....N} on the real line. At every point j, there is a particle with charge Qj (this could be positive or negative). The total net force

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