Problem
Read the number of rows and columns, then the values row by row. Print the grid — each row on its own line, values separated by a space with a trailing space — and then the total of all values.
For 2 3 then 1 2 3 4 5 6:
2 3
1 2 3 4 5 6
1 2 3 4 5 6 21
Press «Submit» to run your code against the task's test cases — that is what sets your score. «AI review» is an optional second opinion: it reads your code — logic and style, not just the output — and suggests the next step without handing over the answer. It never changes your score.