Java Bài 9.A12: Ma trận xoáy ốc


LÀM BÀI

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type

Xây dựng ma trận xoáy ốc cấp n.

Input Format

Số nguyên dương n là cấp của ma trận xoáy ốc cần xây dựng.(2≤N≤100)

Constraints

.

Output Format

In ra ma trận xoáy ốc.

Ví dụ:

Dữ liệu vào
4
Dữ liệu ra
1 2 3 4
12 13 14 5
11 16 15 6
10 9 8 7

Comments

There are no comments at the moment.

Zalo