当前位置:网站首页>两日总结十一
两日总结十一
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分段的训练题目:

总而言之就是刷了感觉有用,思维有提升。
边栏推荐
- 异常:try catch finally throws throw
- How to check if the online query suddenly slows down
- [GXYCTF2019]BabySQli
- Still using Xshell?You are out, recommend a more modern terminal connection tool, easy to use!
- loop word
- Shell编程三剑客之sed
- How to do patent mining, the key is to find patent points, in fact, it is not too difficult
- 什么是“门”电路(电子硬件)
- WebView2 通过 PuppeteerSharp 实现RPA获取壁纸 (案例版)
- C#使用计时器
猜你喜欢

C#使用计时器

【C语言】探索数据的存储(整形篇)

使用 BeanUtils 做属性拷贝,性能有点拉胯!

Only lazy and hungry. You still don't understand the singleton pattern!

How to check if the online query suddenly slows down

HCIP-R&S By Wakin自用笔记(3)OSPF之引入外部路由、Forwarding-Address、汇总、特殊区域

力扣------值相等的最小索引

C # - delegate detailed usage

使用mysql语句操作数据表(table)
![[ASM] The relationship between the role of the bytecode operation ClassWriter COMPUTE_FRAMES and visitMaxs](/img/28/66370d46ebeb1e16b56ea2a36fe100.jpg)
[ASM] The relationship between the role of the bytecode operation ClassWriter COMPUTE_FRAMES and visitMaxs
随机推荐
vim simple save window id
More parameter exposure of Pico 4: Pancake + color perspective, and Pro version
小程序onPageNotFound的坑
简陋的nuxt3学习笔记
力扣------值相等的最小索引
electron -autoUpdater 更新
Kunpeng compilation and debugging and basic knowledge of native development tools
Linux安装redis数据库
C# using timer
dump_stack ()
成功解决raise TypeError(‘Unexpected feature_names type‘)TypeError: Unexpected feature_names type
QT+VTK+PCL拟合圆柱并计算起始点、中止点
Go项目配置管理神器之viper使用详解
【Video】Report Sharing | 2021 Insurance Industry Digital Insights
Shell编程三剑客之sed
The iterator and generator
Data Filters in ABP
③ 关系数据库标准语言SQL 数据查询(SELECT)
Shell 文本三剑客 Sed
MySQL进阶查询