Plywood
CodeChefOpen on judge ↗
The Roboliga team of Credenz '14 have bought a plywood. The plywood is a flat plane represented as a 2D matrix. Each element of a 2D matrix represents the weight of that particular part of the plywood. Now the Roboliga team wants to cut a rectangular hollow piece of outer rectangle of size AxB and inner rectangle of size ((A-2)x(B-2)) from the plywood which satisfies the following conditions: -
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