https://www.acmicpc.net/problem/3049
공식만 알면 풀리는 문제
#include <iostream> using namespace std; int main() { int n; cin >> n; int res = (n*(n-1)*(n-2)*(n-3))/24; cout << res << endl; return 0; }