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 ef589e7Copy full SHA for ef589e7
0x02/solutions/2438.cpp
@@ -1,6 +1,6 @@
1
// Authored by : wogha95
2
// Co-authored by : BaaaaaaaaaaarkingDog
3
-// http://boj.kr/b6adf7a5cfeb49f7a45563ac675a6b3a
+// http://boj.kr/420d07c062f0404aa31c45d22ae01920
4
#include <bits/stdc++.h>
5
using namespace std;
6
0x02/solutions/2439.cpp
// Co-authored by : -
-// http://boj.kr/24752bdbcfe543f9b4fbad61b5c3e46c
+// http://boj.kr/878bc29dd91d4b248ec8de987ac6bd30
0x02/solutions/2440.cpp
@@ -1,18 +1,18 @@
-// http://boj.kr/541d92f7657c4d088ec50462093bbc1b
+// http://boj.kr/ef7859c663cd493a8148cb792840a089
7
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 = 0; i < N; i++) {
15
- for(int j = 0; j < N - i; j++) cout << '*';
+ for(int j = 0; j < N - i; j++) cout << '*';
16
cout << "\n";
17
}
18
-}
+}
0x02/solutions/2441.cpp
@@ -1,20 +1,20 @@
-// http://boj.kr/286ff628320c410e9e691600014cd18d
+// http://boj.kr/802231605a5842bdb35d22acb48802a4
int j = 0;
for( ; j < i; j++) cout << ' ';
for( ; j < N; j++) cout << '*';
19
20
0x02/solutions/2442.cpp
@@ -1,11 +1,20 @@
-// Authored by : BaaaaaaaaaaarkingDog
+// Authored by : wogha95
-// http://boj.kr/****************
+// http://boj.kr/00eea29b840146edac2da552f91c0f41
-int main(void){
+int main(void){
+ int N;
+ cin >> N;
+ for(int i = 1; i <= N; i++){
+ for(int j = 1; j <= N - i; j++) cout << ' ';
+ for(int j = 1; j <= 2 * i - 1; j++) cout << '*';
+ // '*'의 오른쪽 공백은 출력하지 말아야 통과합니다.
+ cout << "\n";
+ }
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments