python-algorithm
백준 3049 다각형의 대각선
무적김두칠
2021. 11. 30. 16:35
1
2
3
4
|
import math
n=int(input())
if n<4: print(0)
else: print(math.factorial(n)//((math.factorial(n-4))*math.factorial(4)))
|
cs |
요거는 확률론, 조합론 내용을 아시면 쉽게풀수있죵
반응형