当前位置:网站首页>两日总结十一
两日总结十一
2022-08-11 01:14:00 【JSU-YSJ】
比赛总结:
蔚来杯6:
这场打的是比较顺利的一场就是过题目也比较顺利,但是感觉我们都是4道简单题之后就是没有机会的时间,总是冲不上去那个瓶颈题目!还需要加强训练。
蔚来杯7:
这一场的话也是没有踩什么坑,就是遇到J题,完全没有思路很是难受,赛后看题解得话感觉简单,但时候有些抽象,争取给他补了。
#include <bits/stdc++.h>
using namespace std;
#define ll long long
const int N = 1e4, mod = 998244353;
ll ifac[N];
ll f[65][65][N];
int n, k, t;
void init() {
ifac[0] = 1;
for (int i = 1; i < N; i++) { ifac[i] = (ifac[i - 1] * i) % mod; }
}
ll qpow(ll a, ll b) {
ll res = 1;
while (b) {
if (b & 1) res *= b, res %= mod;
a *= a, a %= mod;
b /= 2;
}
return res;
}
ll C(ll a, ll b) {
ll res = (ifac[a] * qpow(ifac[b], mod - 2)) % mod * qpow(ifac[a - b], mod - 2);
return res % mod;
}
int main() {
init();
cin >> n >> k >> t;
for (int i = 1; i <= n; i++) { f[0][i][i * (i + 1) / 2] = C(n, i); }
for (int i = 1; i < k; i++) { // 选了0-i
for (int j = 0; j <= n; j++) { // 选了j个
for (int g = 0; g <= (j + 1) * j / 2; g++) { // 贡献值,最多j*(j+1)/2
for (int nx = 0; nx <= n - j; nx++) {
f[i][j + nx][g + (nx - 1) * nx / 2] += f[i - 1][j][g] * C(n - j, nx);
f[i][j + nx][g + (nx - 1) * nx / 2] %= mod;
}
}
}
}
cout << f[k - 1][n][t] % mod << endl;
return 0;
}
CF812.:Codeforces Round #812 (Div. 2)还有就是这一场的补题:
D题的话就是一个简单的交互题目,掌握交互的写法,然后仔细推敲一下就行了,就是样例不是很好看,最好就是一遍就过。
然后就是其他CF1600分段的训练题目:
总而言之就是刷了感觉有用,思维有提升。
边栏推荐
- EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Est...
- SystemVerilog: Verifying knowledge bits and pieces
- Single-chip human-computer interaction--matrix key
- 微信小程序内部A页面向内嵌H5页面跳转,并且传参
- How to determine the size of the version number
- Vim take on a window.
- 【微波工程学习记录1】功率分配器和定向耦合器
- [21 Days Learning Challenge] Half Insertion Sort
- Two-dimensional array combat project -------- "Minesweeper Game"
- Linux安装redis数据库
猜你喜欢
使用 BeanUtils 做属性拷贝,性能有点拉胯!
分库分表ShardingSphere-JDBC笔记整理
Web APIs BOM - A Comprehensive Case of Operating Browsers
Linux install redis database
什么是“门”电路(电子硬件)
EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Est...
Two-dimensional array combat project -------- "Minesweeper Game"
HW-常见攻击方式和漏洞原理(2)
R语言多元线性回归、ARIMA分析美国不同候选人对经济GDP时间序列影响
#yyds干货盘点#【愚公系列】2022年08月 Go教学课程 008-数据类型之整型
随机推荐
Elastic scaling of construction resources
dump_stack()
容器技术真的是环境管理的救星吗?
云原生-FRP内网穿透(详解)使用云服务器将内网集群服务暴露至公网(二)
Still using Xshell?You are out, recommend a more modern terminal connection tool, easy to use!
21、阿里云oss
② 关系数据库标准语言SQL 数据定义(创建、修改基本表)、数据更新(增删改)
Update chromedriver driver programming skills │ selenium
如何做到构建的提速,再提速
Mysql database installation and configuration detailed tutorial
std::format格式化自定义类型
Data Analysis Interview Manual "SQL"
【21天学习挑战赛】折半插入排序
16. Sum of the nearest three numbers
what is an array
Some Experiences of Embedded Software Logging
构建检测,无规矩不成方圆
apache+PHP+MySQL+word press,安装word press时页面报错?
池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!
[21 Days Learning Challenge] Half Insertion Sort