๋ฐ์ํ
zero=[1,0]
one=[0,1]
for i in range(2,41):
zero.append(zero[i-1]+zero[i-2])
one.append(one[i-1]+one[i-2])
t=int(input())
ans=[int(input()) for i in range(t)]
for k in ans:
print(zero[k],zero[k])
'๐ ์๊ณ ๋ฆฌ์ฆ > ๋ฐฑ์ค Python' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[๋ฐฑ์ค] ์ ๋ ฌ /ํ์ด์ฌ - 10814 10815 1026 (0) | 2021.04.19 |
---|---|
[๋ฐฑ์ค] ์ ๋ ฌ /ํ์ด์ฌ - 1427, 10989, 1931, 1181, 11650 (0) | 2021.04.18 |
๋ฐฑ์ค2748๋ฒ ํ์ด์ฌ ํผ๋ณด๋์น์2 #14-1)๋์ ๊ณํ๋ฒ1 (0) | 2020.10.21 |
๋ฐฑ์ค15652๋ฒ ํ์ด์ฌ N๊ณผM4 #13-4) ๋ฐฑํธ๋ํน (0) | 2020.10.20 |
๋ฐฑ์ค15651๋ฒ ํ์ด์ฌ N๊ณผM 3 #13-3) ๋ฐฑํธ๋ํน (0) | 2020.10.20 |
๋๊ธ