13745 - Matrix tros   

Description

Sort m numbers in ascending order, where m = n2 into an nxn matrix.

This is a partial judge program.

Input

First line is an integer m 

m = n2

Output

n x n sorted matrix

Sample Input  Download

Sample Output  Download

Partial Judge Code

13745.c

Partial Judge Header

13745.h

Tags




Discuss