Matrix 1
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 64 megabytes
Given a natural number n, your task is to produce a square matrix of size n x n. This matrix should be filled with integers ranging from 0 to n-1, following the pattern demonstrated in the example.
Input
A natural number n, where 1 ≤ n ≤ 10.
Output
Display a matrix of size n x n, formatted as illustrated in the example.
Examples
Input #1
Answer #1
Submissions 1K
Acceptance rate 55%