Krishna and Coffee Shop
CodeChefOpen on judge ↗
Krishna loves visiting coffee shop in search of finding a _date_ for himself. It's been years now since he started visiting the coffee shop, but no luck till now. But that doesn't mean he'll stop trying. He visits the coffee shop on a regular basis, at every $K$ units of time. This means that his visits in the coffee shop happen at time $K, 2K, 3K, \dots$ respectively. The main problem is that he
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