Bob and the Lock
CodeChefOpen on judge ↗
Bob has stopped using normal locks with keys since he usually loses the keys. So, he has moved onto dial locks, like the one shown in the image below. This lock has 5 dials. But, he doesn't want to be vulnerable to brute force attacks. So, he has designed a dial lock with N dials. Each dial is independent and has digits available from 1 to K. The digits on every dial are cyclic and thus in one mo
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