Reflect relative to the vertical axis of symmetry
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a rectangular two-dimensional array with dimensions n x m, your task is to reflect it across the vertical axis of symmetry.
Input
The first line contains two integers, n and m, representing the dimensions of the array.
The following n lines each contain m integers, representing the elements of the array.
Output
Print the transformed array.
Examples
Input #1
Answer #1
Submissions 2K
Acceptance rate 66%