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.
2 parents dabf139 + 2090bf6 commit 0733e47Copy full SHA for 0733e47
0x02/solutions/2438.cpp
0x02/solutions/2439.cpp
0x02/solutions/2440.cpp
0x02/solutions/2441.cpp
0x02/solutions/2442.cpp
@@ -1,11 +1,20 @@
1
-// Authored by : BaaaaaaaaaaarkingDog
+// Authored by : wogha95
2
// Co-authored by : -
3
-// http://boj.kr/****************
+// http://boj.kr/00eea29b840146edac2da552f91c0f41
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; i++){
15
+ for(int j = 1; j <= N - i; j++) cout << ' ';
16
+ for(int j = 1; j <= 2 * i - 1; j++) cout << '*';
17
+ // '*'의 오른쪽 공백은 출력하지 말아야 통과합니다.
18
+ cout << "\n";
19
+ }
20
}
0 commit comments