๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ”‘ ์•Œ๊ณ ๋ฆฌ์ฆ˜/๋ฐฑ์ค€ Python

๋ฐฑ์ค€1003๋ฒˆ ํŒŒ์ด์ฌ ํ”ผ๋ณด๋‚˜์น˜ํ•จ์ˆ˜ #14-2)๋™์ ๊ณ„ํš๋ฒ•1

by Tamii 2020. 10. 21.
๋ฐ˜์‘ํ˜•

 

 

 

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])

 

๋Œ“๊ธ€