标签:
#include <iostream> using namespace std; int cmn(int n,int m) { int ans=1; for(int i=1;i<=n;i++) { ans*=(m-n+i); ans/=i; } return ans; } int main() { int n,m; while(cin>>n>>m) { cout<<cmn(n,m)<<endl; } return 0; }
标签:
原文地址:http://www.cnblogs.com/BugClearlove/p/4412809.html