Submission #69231


ソースコード

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include<bits/stdc++.h>
#define dou double
#define ll long long
#define int2 int,int
#define all(x) x.begin(),x.end()
#define gi greater<int>()
#define pb push_back
#define mp make_pair
#define emp emplase
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define fir first
#define sec second
#define uns unsigned
#define INF 10e9
using namespace std;
int main(){
int n;
cin>>n;
rep(i,n){
rep(j,n){
if(i==0||i==n-1||j==0||j==n-1) cout<<" *";
else cout<<" ";
}
cout<<"\n";
}
return 0;
}

ステータス

項目 データ
問題 0378 - 正方形の描写
ユーザー名 ei2113
投稿日時 2022-01-28 16:12:10
言語 C++17
状態 Accepted
得点 1
ソースコード長 576 Byte
最大実行時間 27 ms
最大メモリ使用量 604 KB

セット

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

テストケース

ファイル名 状態 実行時間 メモリ使用量 #
input1.txt AC 27 ms 604 KB
1
input2.txt AC 24 ms 448 KB
1
input3.txt AC 19 ms 420 KB
1
input4.txt AC 24 ms 524 KB
1