Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ef589e7

Browse files
committed
Update 2422.cpp
1 parent dabf139 commit ef589e7

File tree

5 files changed

+24
-15
lines changed

5 files changed

+24
-15
lines changed

‎0x02/solutions/2438.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Authored by : wogha95
22
// Co-authored by : BaaaaaaaaaaarkingDog
3-
// http://boj.kr/b6adf7a5cfeb49f7a45563ac675a6b3a
3+
// http://boj.kr/420d07c062f0404aa31c45d22ae01920
44
#include <bits/stdc++.h>
55
using namespace std;
66

‎0x02/solutions/2439.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Authored by : wogha95
22
// Co-authored by : -
3-
// http://boj.kr/24752bdbcfe543f9b4fbad61b5c3e46c
3+
// http://boj.kr/878bc29dd91d4b248ec8de987ac6bd30
44
#include <bits/stdc++.h>
55
using namespace std;
66

‎0x02/solutions/2440.cpp‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
// Authored by : wogha95
22
// Co-authored by : -
3-
// http://boj.kr/541d92f7657c4d088ec50462093bbc1b
3+
// http://boj.kr/ef7859c663cd493a8148cb792840a089
44
#include <bits/stdc++.h>
55
using namespace std;
66

77
int main(void){
88
ios::sync_with_stdio(0);
99
cin.tie(0);
10-
10+
1111
int N;
1212
cin >> N;
13-
13+
1414
for(int i = 0; i < N; i++) {
15-
for(int j = 0; j < N - i; j++) cout << '*';
15+
for(int j = 0; j < N - i; j++) cout << '*';
1616
cout << "\n";
1717
}
18-
}
18+
}

‎0x02/solutions/2441.cpp‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
// Authored by : wogha95
22
// Co-authored by : BaaaaaaaaaaarkingDog
3-
// http://boj.kr/286ff628320c410e9e691600014cd18d
3+
// http://boj.kr/802231605a5842bdb35d22acb48802a4
44
#include <bits/stdc++.h>
55
using namespace std;
66

77
int main(void){
88
ios::sync_with_stdio(0);
99
cin.tie(0);
10-
10+
1111
int N;
1212
cin >> N;
13-
13+
1414
for(int i = 0; i < N; i++) {
1515
int j = 0;
1616
for( ; j < i; j++) cout << ' ';
1717
for( ; j < N; j++) cout << '*';
1818
cout << "\n";
1919
}
20-
}
20+
}

‎0x02/solutions/2442.cpp‎

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,20 @@
1-
// Authored by : BaaaaaaaaaaarkingDog
1+
// Authored by : wogha95
22
// Co-authored by : -
3-
// http://boj.kr/****************
3+
// http://boj.kr/00eea29b840146edac2da552f91c0f41
44
#include <bits/stdc++.h>
55
using namespace std;
66

7-
int main(void){
7+
int main(void){
88
ios::sync_with_stdio(0);
99
cin.tie(0);
10-
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+
}
1120
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /