首页 > 其他 > 详细

C - Duodecim Ferra(求组合数)

时间:2020-12-14 18:49:07      阅读:31      评论:0      收藏:0      [点我收藏+]

C - Duodecim Ferra

求组合数:

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    n --;
    long long ans = 1;
    for(int i = 1; i <= 11; i ++){
        ans *= n;
        ans /= i;
        n --;
    }
    cout << ans << endl;
    
    
    return 0;
} 

 

C - Duodecim Ferra(求组合数)

原文:https://www.cnblogs.com/pureayu/p/14133034.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!