← All problemsSign in

Probability of Balance

Park in Wonderland has recently installed a see-saw which consists of a metallic bar of length $N$ (where $N$ is even) supported by a single pivot point, located at the midpoint of the bar. Surprisingly the number of students in Wonderland School is also $N$ where the weight of the $i^{th}$ ($1 \leq i \leq N$) student is $i$. They together with their teacher Bob go to the park to experie

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