본문 바로가기
python-algorithm

백준 3049 다각형의 대각선

by 무적김두칠 2021. 11. 30.

1
2
3
4
import math
n=int(input())
if n<4print(0)
elseprint(math.factorial(n)//((math.factorial(n-4))*math.factorial(4)))
cs

요거는 확률론, 조합론 내용을 아시면 쉽게풀수있죵

반응형

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

백준 7600 문자가 몇갤까  (0) 2021.12.03
백준 10173 니모를 찾아서  (0) 2021.12.02
백준 3047 ABC  (0) 2021.11.30
백준 2998 8진수  (0) 2021.11.30
백준 2592 대표값  (0) 2021.11.30

댓글