Madelaine Broomfield
Madelaine Broomfield

Madelaine Broomfield

      |      

Subscribers

   About

Tren And Dbol Stack Latest News, Updates & Articles On Tren And Dbol Stack Page 4

The output is simply an \(n\times n\) grid that contains the integers from 1 to \(n^2\) in order, row‑by‑row.



For each test case you print



(1 … n)
(n+1 … 2n)

((n−1)n+1 … n²)

So for example



\(n=3\) →




1 2 3
4 5 6
7 8 9


\(n=5\) →




1 2 3 4 5
6 7 8 9 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25


The task is simply to output these rows of consecutive integers.

Gender: Female