Skip to content

Commit ad28429

Browse files
committed
Update '멀리 뛰기'
1 parent a6a6e65 commit ad28429

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Level_2/멀리 뛰기/main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def solution(n):
2+
if n < 3:
3+
return n
4+
a, b = 1, 2
5+
for i in range(3, n+1):
6+
a, b = b, a + b
7+
return b % 1234567

0 commit comments

Comments
 (0)