We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabf139 commit 5fff342Copy full SHA for 5fff342
0x02/solutions/2445.cpp
@@ -1,11 +1,30 @@
1
-// Authored by : BaaaaaaaaaaarkingDog
+// Authored by : wogha95
2
// Co-authored by : -
3
-// http://boj.kr/****************
+// http://boj.kr/aee90111832742cb969736538c8f2d62
4
#include <bits/stdc++.h>
5
using namespace std;
6
7
-int main(void){
+int main(void){
8
ios::sync_with_stdio(0);
9
cin.tie(0);
10
-
+
11
+ int N;
12
+ cin >> N;
13
14
+ for(int i = 1; i <= N - 1; i++) {
15
+ for(int j = 1; j <= i; j++) cout << '*';
16
+ for(int j = 1; j <= 2 * (N - i); j++) cout << ' ';
17
18
+ cout << "\n";
19
+ }
20
21
+ for(int j = 1; j <= 2 * N; j++) cout << '*';
22
23
24
25
+ for(int j = 1; j <= N - i; j++) cout << '*';
26
+ for(int j = 1; j <= 2 * i; j++) cout << ' ';
27
28
29
30
}
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments