본문 바로가기
python-algorithm

[백준] 1010

by 무적김두칠 2021. 1. 21.

1
2
3
4
5
import math
import sys
for _ in range(int(sys.stdin.readline())):
    a,b=map(int,sys.stdin.readline().split())
    print(math.factorial(b)//math.factorial(a)//math.factorial(b-a))
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 8595  (0) 2021.01.25
[백준] 6996  (0) 2021.01.25
[백준] 11719  (0) 2021.01.21
[백준] 11050  (0) 2021.01.21
[백준] 4344  (0) 2021.01.21

댓글