Add Them All

Write a function mat_sum(m)mat\_sum(m) that receives a matrix of int’s mm and returns the sum of all the integers in that matrix. The matrix of int’s is represented as a tuple of rows, each row being, in turn, a tuple of int’s.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T16:17:50.355Z

© Jutge.org, 2006–2026.
https://jutge.org