首页 > 其他 > 详细

oj2817

时间:2017-05-29 17:53:16      阅读:261      评论:0      收藏:0      [点我收藏+]
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<algorithm>
using namespace std;
#pragma warning(disable:4996)
#define LL long long
int n;
LL ans;
LL jc(int n)
{
    LL x = 1;
    for (int i = 1; i <= n; i++)
        x *= i;
    return x;
}
int main()
{
    while (~scanf("%d" , &n))
    {
        ans = jc(n) / 2;
        ans /= n;
        if (ans == 0)
            ans = 1;
        printf("%lld\n" , ans);
    }
    return 0;
}

排列组合

链接

oj2817

原文:http://www.cnblogs.com/Sorry-for-now/p/6918549.html

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