Skip to content

Commit 9e2db01

Browse files
committed
104차 1번 문제 풀이
1 parent 64ec6e9 commit 9e2db01

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import sys
2+
3+
input = sys.stdin.readline
4+
5+
p = [0] * 101
6+
p[1] = 1
7+
p[2] = 1
8+
9+
for i in range(3, 101):
10+
p[i] = p[i-3] + p[i-2]
11+
12+
t = int(input())
13+
for _ in range(t):
14+
n = int(input())
15+
16+
print(p[n])

0 commit comments

Comments
 (0)