chul's thinking
Chul n Ju
(281)
알쓸신잡
(4)
Short Thinking
(92)
Coding
(53)
CodeUp
(39)
Python
(14)
Chul's Family 09'
(0)
Chul
(0)
Kyung-Ju
(0)
Ju-Won
(0)
Camera_Lecture
(27)
Camera_Wants
(9)
Work
(32)
GSM
(1)
WCDMA
(3)
Embedded
(23)
Clien
(37)
New
(16)
Info
(1)
Magazine
(0)
혈액형
(0)
Spec
(2)
Info
(4)
food
(0)
engadget
(0)
Etc.
(0)
Life
(3)
Util
(1)
Music
(0)
Funny
(0)
Photo_Chul n Ju 08'
(0)
Chul
(0)
Ju
(0)
Photo_Wedding
(0)
Travel
(0)
Chul n Ju 08'
(0)
Paris
(0)
Praha
(0)
Wien
(0)
Salsbrug
(0)
Muchen
(0)
Amsteldam
(0)
Photo_
(0)
200708_Tailand
(0)
200801_SerkYoung Wedding
(0)
200803_Guam
(0)
Family
(0)
Company
(0)
Etc.
(0)
Photo_Camera
(0)
Barnak IIIf
(0)
Pentax Me Super
(0)
Contax G1
(0)
Pentax MX
(0)
Short_Articles
(12)
HOME
TAG
MEDIA LOG
LOCATION LOG
GUEST BOOK
ADMIN
WRITE
=3=3=3ㅌㅌ
simix.net 에 오신걸 환영 합니다..^^
/
/
블로그 내 검색
3709 : 블럭 채우기 1
chulpark
2023. 3. 15. 18:36
2023. 3. 15. 18:36
https://codeup.kr/problem.php?id=3709
논리를 만들다 보니 형태가 비슷하게 나온다.....
http://chul0302.egloos.com/3300468
이것과 답이 거의 같다...
n = int(input())
d = [0] * 10001
d[1] = 1
d[2] = 2
for i in range(3, n+1):
d[i] = (d[i-1] + d[i-2]) % 100000007
print(d[n])
공유하기
게시글 관리
chul's thinking
저작자표시
+ Recent posts
Powered by
Tistory
, Designed by
wallel
Rss Feed
and
Twitter
,
Facebook
,
Youtube
,
Google+
티스토리툴바