博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
【UOJ】#273. 【清华集训2016】你的生命已如风中残烛
阅读量:4353 次
发布时间:2019-06-07

本文共 884 字,大约阅读时间需要 2 分钟。

题目链接:


$${Ans=\frac{\prod _{i=1}^{m}i}{w-n+1}}$$

1 #include
2 #include
3 #include
4 #include
5 #include
6 #include
7 #include
8 using namespace std; 9 #define maxn 1001010 #define llg int11 #define md 998244353 12 #define yyj(a) freopen(a".in","r",stdin),freopen(a".out","w",stdout);13 llg n,m,ans,x,w;14 15 inline int getint()16 {17 int w=0;18 char c=getchar();19 while((c<'0' || c>'9') && c!='-') c=getchar();20 //if (c=='-') q=1, c=getchar();21 while (c>='0' && c<='9') w=w*10+c-'0', c=getchar();22 return w;23 }24 25 int main()26 {27 yyj("a");28 cin>>n;29 for (register llg i=1;i<=n;i++)30 {31 x=getint();32 w+=x;33 }34 ans=1;35 for (register llg i=1;i<=w;i++) if (i+n!=w+1) ans=1LL*ans*i%md;36 cout<

 

转载于:https://www.cnblogs.com/Dragon-Light/p/6431944.html

你可能感兴趣的文章
Solr
查看>>
MySQL binlog数据库同步技术总结
查看>>
静态方法
查看>>
保护HTTP的安全
查看>>
python类的特殊成员变量
查看>>
sublime text3最新版本注册码(build 3143)
查看>>
linux使用技巧
查看>>
必背公式及常数
查看>>
利用CSS、JavaScript及Ajax实现图片预加载的三大方法
查看>>
js时间戳转时间格式
查看>>
Nginx配置文件nginx.conf中文详解(总结)
查看>>
Linux的用户态和内核态
查看>>
JavaScript原生错误及检测
查看>>
(原创) cocos2d-x 3.0+ lua 学习和工作(4) : 公共函数(3): 深度克隆clone()
查看>>
为什么写作
查看>>
整数子数组求最大和添加验证
查看>>
使用kubeadm安装Kubernetes
查看>>
Principal Component Analysis 主元分析
查看>>
JDBC原生态代码
查看>>
韩版可爱小碎花创意家居收纳挂袋
查看>>