标签:cin efi -- its for end 计算 pac names
#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll c(int n,int m){
if(m<n-m) m=n-m;
ll ans=1;
for(int i=n;i>=m+1;i--)
ans*=i;
for(int j=1;j<=n-m;j++)ans/=j;
return ans;
}
int main(){
int n,m;
while(cin>>n>>m){
cout<<c(n,m)<<endl;
}
return 0;
}
标签:cin efi -- its for end 计算 pac names
原文地址:https://www.cnblogs.com/mch5201314/p/9391674.html