P3017 [USACO11MAR] Brownie Slicing G
Description
Bessie has baked a rectangular brownie that can be thought of as an RxC grid (1
Input Format
\* Line 1: Four space-separated integers: R, C, A, and B
\* Lines 2..R+1: Line i+1 contains C space-separated integers: N\_i1, ..., N\_iC
Output Format
\* Line 1: A single integer: the maximum number of chocolate chips that Bessie guarantee on her brownie