The Enchanted Glasses
CodeChefOpen on judge ↗
One day while roaming the lands of Greece, Rubixius came across a strange arrangement of glasses. He saw N glasses kept randomly with a cloud hovering over a glass ni for a certain period of time pouring 1 drop of rain per second. After the time was up it would go to another glass and start dripping water in that glass. The strange thing about these glasses was that, if at any time a glass was fi
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