241일차 - BOJ no.11050

https://www.acmicpc.net/problem/11050

My Solution

import sys

N, K = list(map(int, sys.stdin.readline().rstrip().split()))

x = 1
for i in range(N, N-K, -1):
    x *= i

y = 1
for i in range(1, K+1):
    y *= i

print(x // y)python

좋은 웹페이지 즐겨찾기