Join Regular Classroom : Visit ClassroomTech

Coding Questions | Coins In A Box | Codewindow.in

There is a certain number of coins in M*N boxes. These are arranged in matrix form. You are given a and b values where a donets the row number and b denotes the column number. Given a matrix size M*N, consider the union of the ath row and the bth column of the matrix. Write a program to find the sum of coins that you can collect from ath row and bth column.

Example:
Input:
3
3
1 3 5
2 6 9
3 6 9
0
2

Output:
27

Solution:

Coming....
You Missed
Also Checkout