Nami and the Golden Bell
CodeChefOpen on judge ↗
Nami hears of the Golden Bell, one of the most coveted pieces of treasure and immediately wants to get her hands on it anyhow. She knows she can find it somewhere in the Skypiea island, but in order to get to the treasure she needs to first solve a task: She is given an integer **n**, and she has to find the smallest integer **m** such that the sum of first **m** **odd numbers** is **greater than
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