Gomti the Cow
CodeChefOpen on judge ↗
Gomti is a hungry and lazy cow. Her master is fed up with her because she does nothing useful. So now he has thought of a new job for her, eating grass. She has a field in front of her with some weeds in it. Her job is to eat those weeds. But being lazy, she wants to do it as optimally as possible. For simplicity lets assume that the field in front of her is divided in M X N squares such that sh
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