Skip to content

Commit e8bf660

Browse files
committed
이친수 풀이
1 parent 3d2e6aa commit e8bf660

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

BAEKJOON/2Silver/시리얼 번호.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#
1+
# 정렬
22
# https://www.acmicpc.net/problem/1431
33

44
"""
@@ -26,4 +26,5 @@
2626
lists.append((serial_len, serial_sum, serial))
2727

2828
lists.sort()
29-
print("\n".join(list(map(lambda x: x[2], lists))))
29+
print("\n".join(list(map(lambda x: x[2], lists))))
30+

BAEKJOON/2Silver/이친수.py

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 다이나믹 프로그래밍
2+
# https://www.acmicpc.net/problem/2193
3+
4+
dp = [0, 1, 1]
5+
for i in range(2, int(input())):
6+
dp.append(dp[i]+dp[i-1])
7+
print(dp[-1])

0 commit comments

Comments
 (0)