Submission #35563


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include <stdio.h>
int main()
{
int n;
int i, j;
scanf("%d", &n);
for ( i = 0; i < n; i++) {
for (j = 0; j < n; j++ ) {
if ( 0 < i && i < n - 1 && 0 < j && j < n - 1) {
printf(" "); //空白2個
} else {
printf(" *");
}
}
printf("\n");
}
return 0;
}

ステータス

項目 データ
問題 0378 - 正方形の描写
ユーザー名 ei1710
投稿日時 2018-05-12 20:24:07
言語 C
状態 Accepted
得点 1
ソースコード長 397 Byte
最大実行時間 24 ms
最大メモリ使用量 596 KB

セット

セット 得点 Cases
1 ALL 1 / 1 *

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input1.txt AC 17 ms 380 KB
1
input2.txt AC 18 ms 412 KB
1
input3.txt AC 21 ms 596 KB
1
input4.txt AC 24 ms 520 KB
1