← All problemsSign in

Jatin and Bells

Jatin stands between two identical large bells in a city. First bell rings A times and the second bell rings B times. Both bells ring from t=0 to t=T, i.e, both bells ring for the first time at t=0 and ring for the last time at t=T. Also, the bells ring at regular intervals (the frequencies need not neccessarily be identical). Imagine that Jatin hears the sound of a bell at the same instant it ri

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