← All problemsSign in

Apple Orchard

Problem Statement Jason and his dad own an apple orchard of size N x M. And every fall he would help his father pick apples for the production of cider. But the cider press can take only K kilograms a day due to its small size. Every day he would pick apples only in a special sub-rectangle which has size S x T where Sat least K kilograms of apples.. Input The first line of the input contains in

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