Submission #27688


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include<bits/stdc++.h>
using namespace std;
int main(){
int n,ans;
cin>>n;
for(int y=0;y<n;y++){
for(int x=0;x<n;x++){
if(x==0 || y==0 || x==n-1 || y==n-1){
cout<<" *";
}else{
cout<<" ";
}
}
cout<<endl;
}
return 0;
}

ステータス

項目 データ
問題 0378 - 正方形の描写
ユーザー名 Zzz..ei1704..Zzz
投稿日時 2017-10-16 17:43:51
言語 C++11
状態 Accepted
得点 1
ソースコード長 278 Byte
最大実行時間 30 ms
最大メモリ使用量 480 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input1.txt AC 30 ms 480 KB
1
input2.txt AC 19 ms 456 KB
1
input3.txt AC 21 ms 428 KB
1
input4.txt AC 16 ms 404 KB
1