From b87096b868916091846de6eccf34614ea876681e Mon Sep 17 00:00:00 2001 From: aiden0413 Date: Thu, 30 Oct 2025 16:58:38 +0900 Subject: [PATCH] =?UTF-8?q?[6=EC=A3=BC=EC=B0=A8]=202775=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/2775.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 seokjun/week6/2775.py diff --git a/seokjun/week6/2775.py b/seokjun/week6/2775.py new file mode 100644 index 0000000..95d7a84 --- /dev/null +++ b/seokjun/week6/2775.py @@ -0,0 +1,11 @@ +from itertools import* + +t=int(input()) +for _ in range(t): + k,n=int(input()),int(input()) + # 0층 + f=list(range(n+1)) + for _ in range(k): + # 다음층은 이전층의 누적합 배열 + f=list(accumulate(f)) + print(f[n]) \ No newline at end of file