~/algor $ cat problems/matrix/multiply-a-matrix-by-a-number
Multiply a matrix by a number
Easy
1000 ms
64 MB
31%
A matrix of size and an integer are given. Multiply every element of the matrix by and print the resulting matrix.
Input
The first line contains three integers , and .
Each of the next lines contains integers — the matrix.
Output
lines with integers each.
Note
Examples
Input #1
2 3 -2 1 0 4 -3 5 2
Output #1
-2 0 -8 6 -10 -4
Input #2
1 1 0 7
Output #2
0