Submission #58573


ソースコード

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( void )
{
int n, i, j;
scanf("%d", &n);
for( i=1; i<=n; i++ ) {
printf(" *");
for( j=2; j<=n; j++ ) {
if( i == 1 || i == n || j % n == 0 ) {
printf(" *");
} else {
printf(" ");
}
}
printf("\n");
}
return 0;
}

ステータス

項目 データ
問題 0378 - 正方形の描写
ユーザー名 sth19_t-ogura
投稿日時 2020-02-12 16:59:15
言語 C
状態 Accepted
得点 1
ソースコード長 510 Byte
最大実行時間 25 ms
最大メモリ使用量 504 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input1.txt AC 25 ms 504 KB
1
input2.txt AC 14 ms 308 KB
1
input3.txt AC 17 ms 324 KB
1
input4.txt AC 16 ms 372 KB
1