Submission #24818
ソースコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #include<bits/stdc++.h> using namespace std; int main(){ int n; scanf ( "%d" ,&n); for ( int i=0;i<n;++i){ for ( int j=0;j<n;++j){ if (i==0||i==n-1||j==0||j==n-1) printf ( " *" ); else printf ( " " ); } printf ( "\n" ); } return 0; } |
ステータス
項目 | データ |
---|---|
問題 | 0378 - 正方形の描写 |
ユーザー名 | Wonder /*ei1741*/ |
投稿日時 | 2017-08-10 15:22:36 |
言語 | C++11 |
状態 | Accepted |
得点 | 1 |
ソースコード長 | 230 Byte |
最大実行時間 | 26 ms |
最大メモリ使用量 | 564 KB |
セット
セット | 得点 | Cases | |
---|---|---|---|
1 | ALL | 1 / 1 | * |
テストケース
ファイル名 | 状態 | 実行時間 | メモリ使用量 | # |
---|---|---|---|---|
input1.txt | AC | 26 ms | 480 KB |
1
|
input2.txt | AC | 16 ms | 460 KB |
1
|
input3.txt | AC | 17 ms | 564 KB |
1
|
input4.txt | AC | 16 ms | 536 KB |
1
|