Skip to content

Commit 1e55952

Browse files
authored
Create 11050_이항 계수 1(B1).py
1 parent e176f7d commit 1e55952

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
def fact(x):
2+
t=1
3+
for i in range(1, x+1):
4+
t*=i
5+
return t
6+
7+
def bc(x,y):
8+
return int(fact(x)/(fact(y)*fact(x-y)))
9+
10+
N,K=map(int, input().split())
11+
12+
print(bc(N,K))

0 commit comments

Comments
 (0)