You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
215 B
12 lines
215 B
2 years ago
|
#include<bits/stdc++.h>
|
||
|
|
||
|
using namespace std;
|
||
|
typedef long long LL;
|
||
|
LL n, ans;
|
||
|
|
||
|
int main() {
|
||
|
cin >> n;
|
||
|
ans = n * (n - 1) / 2 * (n - 2) / 3 * (n - 3) / 4;
|
||
|
printf("%lld\n", ans);
|
||
|
return 0;
|
||
|
}
|