📅  最后修改于: 2022-03-11 14:44:51.351000             🧑  作者: Mango
#include
#define ll long long
using namespace std;
ll combinations(ll n)
{
ll count=1;
if(n<2)
return 0;
else
{
for(ll i=1;i<=2;i++)
{
count=count*n--;
count=count/i;
}
}
return count;
}