From 876aa1b9358a2b651f08741578530a4ea1f32398 Mon Sep 17 00:00:00 2001 From: Jiyun Kim Date: Wed, 10 May 2023 21:58:08 +0900 Subject: [PATCH] =?UTF-8?q?#17=20:=2011050=5F=EC=9D=B4=ED=95=AD=20?= =?UTF-8?q?=EA=B3=84=EC=88=98=201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...4\355\225\255 \352\263\204\354\210\230 1.py" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "\354\235\264\355\213\260\354\247\200\354\234\244/11050_\354\235\264\355\225\255 \352\263\204\354\210\230 1.py" diff --git "a/\354\235\264\355\213\260\354\247\200\354\234\244/11050_\354\235\264\355\225\255 \352\263\204\354\210\230 1.py" "b/\354\235\264\355\213\260\354\247\200\354\234\244/11050_\354\235\264\355\225\255 \352\263\204\354\210\230 1.py" new file mode 100644 index 0000000..87f8b56 --- /dev/null +++ "b/\354\235\264\355\213\260\354\247\200\354\234\244/11050_\354\235\264\355\225\255 \352\263\204\354\210\230 1.py" @@ -0,0 +1,17 @@ +import sys +input = sys.stdin.readline + +n,k = map(int, input().split()) + +array = [[0 for _ in range(n+1)] for _ in range(n+1)] + +for i in range(n+1): + array[i][i] = 1 + array[i][0] = 1 + +for i in range(2,n+1): + for j in range(1,n+1): + if array[i][j] != 1: + array[i][j] = array[i-1][j-1] + array[i-1][j] + +print(array[n][k]) \ No newline at end of file