diff --git a/seokjun/week6/1003.py b/seokjun/week6/1003.py new file mode 100644 index 0000000..6c72aa4 --- /dev/null +++ b/seokjun/week6/1003.py @@ -0,0 +1,13 @@ +t=int(input()) + +def binet(n): + return round((((1+(5**.5))/2)**n-((1-(5**.5))/2)**n)/(5**.5)) + +for _ in range(t): + n=int(input()) + if n==0: + print(1,0) + elif n==1: + print(0,1) + else: + print(binet(n-1),binet(n))