From a0b50461a1961f1f669f0ce38e34776fc2066d48 Mon Sep 17 00:00:00 2001 From: aiden0413 Date: Thu, 30 Oct 2025 17:27:53 +0900 Subject: [PATCH] =?UTF-8?q?[6=EC=A3=BC=EC=B0=A8]=201003=20=EB=AC=B8?= =?UTF-8?q?=EC=A0=9C=ED=92=80=EC=9D=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- seokjun/week6/1003.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 seokjun/week6/1003.py 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))