Write a program that, given a square matrix and a natural number , computes .
The input consists of several cases. Each case consists of a natural number followed by a natural number and by integer numbers.
For each case, print the elements of in lines following the format of the example. Print a line with 10 dashes after every matrix.
Author: Gabriel Valiente
Generation: 2026-01-25T15:51:41.384Z
© Jutge.org, 2006–2026.
https://jutge.org