본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬] 3049번 다각형의 대각선

by 현장 2022. 2. 20.

-코드

n = int(input())
print(n * (n - 1) * (n - 2) * (n - 3) // 24)