Question: The program must accept an integer matrix of size R*C and two integer X, Y as the input. The program must print the sum of
The program must accept an integer matrix of size R*C and two integer X, Y as the input. The program must print the sum of integers in all X*Y non-overlapping submatrices as the output. Boundary Condition(s): 2<=X <=R<=50 2<=Y<=C<=50 1 <= Matrix element value <= 1000 Input Format: The first line contains R and C separated by a space. The The next (R+2)th lines, line each contains X contains and C integers separated by space. separated by a space. Output Format: The first line contains the integer values representing the sum of integers in all the X*Y non-overlapping submatrices
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
