complete 1149, 1904, 9461

This commit is contained in:
2021-02-19 01:59:58 +09:00
parent 1b7ceef1da
commit adbd4d1a3f
3 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
T = int(input())
M = [1, 1, 1] + [0 for i in range(100 - 3)]
I = [int(input()) for _ in range(T)]
for i in range(3, max(I)):
M[i] = M[i - 2] + M[i - 3]
for i in I:
print(M[i - 1])