Multiply a Column

Write a function prod_col(i, m) that receives the index i of one column
of a matrix of int’s m and returns the product of all the integers in
that column. The matrix of int’s is represented as a tuple of rows, each
row being, in turn, a tuple of int’s. If m has n columns, we are
guaranteed that 0 ≤ i < n.

Observation

Observe that 0 ≤ i < n implies that the rows of m, if any, have that
column and are hence nonempty, but nothing else.

Problem information

Author: José Luis Balcázar

Generation: 2026-01-25T17:16:10.590Z

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