当前位置:网站首页>两日总结十一
两日总结十一
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分段的训练题目:
总而言之就是刷了感觉有用,思维有提升。
边栏推荐
- 详解JDBC的实现与优化(万字详解)
- EPro-PnP: Generalized End-to-End Probabilistic Perspective-n-Points for Monocular Object Pose Est...
- 22/8/9 Collection of Greedy Problems
- 异常:try catch finally throws throw
- 深度解析volatile关键字(保证够全面)
- MySQL indexes and transactions
- SQL语句--获取数据库表信息,表名、列名、描述注释等
- C # - delegate detailed usage
- 微服务概念
- 22/8/9 贪心问题合集
猜你喜欢
sed of the Three Musketeers of Shell Programming
HCIP-R&S By Wakin自用笔记(3)OSPF之引入外部路由、Forwarding-Address、汇总、特殊区域
More parameter exposure of Pico 4: Pancake + color perspective, and Pro version
什么是“门”电路(电子硬件)
构建资源的弹性伸缩
② 关系数据库标准语言SQL 数据定义(创建、修改基本表)、数据更新(增删改)
全排列思路详解
双机热备综合实验(VRRP+OSPF+VTP+NAT+DHCP+PVSTP+单臂路由)
简陋的nuxt3学习笔记
SQL statement--get database table information, table name, column name, description comment, etc.
随机推荐
Go项目配置管理神器之viper使用详解
Kunpeng compilation and debugging and basic knowledge of native development tools
Shell Text Three Musketeers Sed
简陋的nuxt3学习笔记
C#-委托的详细用法
分库分表ShardingSphere-JDBC笔记整理
二维数组实战项目--------《扫雷游戏》
Still using Xshell?You are out, recommend a more modern terminal connection tool, easy to use!
力扣------值相等的最小索引
容器技术真的是环境管理的救星吗?
The SAP ABAP JSON format data processing
C#使用计时器
How to determine the size of the version number
R language multiple linear regression, ARIMA analysis of the impact of different candidates in the United States on the economic GDP time series
SystemVerilog: 验证知识点点滴滴
leetcode 前K个高频单词
Navicat 16-数据库工具
微信小程序通过URL Scheme动态的渲染数据
微信小程序自定义navigationBar
How to check if the online query suddenly slows down