Problem list
Log in
#r03088 · Online Judge > GoldOJ

Double a Matrix

Bronze III 2.0 s 1024 MB

An $n \times m$ matrix of integers is given. Print the matrix with every value doubled.

Input

Line 1: $n$ $m$. Next $n$ lines: $m$ integers each ($1 \le n, m \le 10$).

Output

Print the doubled matrix, rows on separate lines.

Example 1

Input
3 4
1 2 3 4
5 6 7 8
9 10 11 12
Output
2 4 6 8
10 12 14 16
18 20 22 24
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 0 Submissions 0 Acceptance 0% Solvers 0

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code