~/algor $ cat problems/matritsa-kozgu-aks
Mirror image
Easy
1000 ms
128 MB
29%
A matrix of size $n \times m$ is given. Print its mirror image about the vertical axis (the elements of every row in reverse order).
Input
The first line contains two positive integers $n$ and $m$. Each of the next $n$ lines contains $m$ integers.
Output
$n$ lines with $m$ space-separated integers each.
Note
$1 \le n, m \le 200$
$-1000 \le a_{i,j} \le 1000$
Examples
Input #1
2 3 1 -2 3 -4 5 6
Output #1
3 -2 1 6 5 -4
Input #2
2 1 3 4
Output #2
3 4