A. [R5A]空心正方形

    Type: Default 1000ms 512MiB

[R5A]空心正方形

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

时空限制

1S/512M

题目描述

给定整数 nn,请你用 # 和空格画一个 n×nn\times n 的空心正方形。

格式

输入格式

第一行包含一个整数 nn 表示空心正方形的边长。

输出格式

输出一个 n×nn\times n 的由 # 和空格组成的空心正方形,格式见样例。

样例

样例输入 #1

4

样例输出 #1

####
#  #
#  #
####

数据规模

对于 10%10\% 的数据,n10n\leq 10

对于 100%100\% 的数据,3n1003\leq n\leq 100

代码源挑战赛 Round 5

Not Attended
Status
Done
Rule
DMY
Problem
6
Start at
2025-3-28 20:00
End at
2025-3-28 21:30
Duration
1.5 hour(s)
Host
Partic.
534