当前位置:网站首页>【学习笔记】ARC144
【学习笔记】ARC144
2022-07-20 06:40:00 【仰望星空的蚂蚁】
没办法只能vp了
K Derangement
- arc 的题找规律风险还是蛮大的
- 显然我们要按 n n n, K K K分类讨论
- 不难发现 n = 2 K n=2K n=2K时存在最优构造
- 显然 n ≥ 2 K n\ge 2K n≥2K时有解
- 因此递归构造即可
- 我来浅证一下 n ∈ [ 2 K , 4 K ) n\in [2K,4K) n∈[2K,4K) 时结论的正确性
- 假设 n ∈ [ 2 K , 3 K ] n\in [2K,3K] n∈[2K,3K]
- 首先给出构造 ( K + 1 , . . , n , ∣ 1 , 2 , . . . , K ) (K+1,..,n,|1,2,...,K) (K+1,..,n,∣1,2,...,K)
- 如果我交换前半段和后半段的数
- 前半段的数会被挤到后半段去
- 这个数至少是 2 K + 1 2K+1 2K+1
- 显然在 [ n − K + 1 , n ] [n-K+1,n] [n−K+1,n]中不存在解
- 假设 n ∈ ( 3 K , 4 K ] n\in (3K,4K] n∈(3K,4K]
- 可以将前半部分和后半部分交换一段
- 给出构造 ( K + 1 , . . . , 2 K , 1 , . . . , n − 3 K , n − K + 1 , . . . , n , ∣ n − 3 K + 1 , . . . , K , 2 K + 1 , . . . , n − K ) (K+1,...,2K,1,...,n-3K,n-K+1,...,n,|n-3K+1,...,K,2K+1,...,n-K) (K+1,...,2K,1,...,n−3K,n−K+1,...,n,∣n−3K+1,...,K,2K+1,...,n−K)
- 注意到如果我们把 n − 3 K + 1 n-3K+1 n−3K+1换到前面去的话,至少会把 n − K + 1 n-K+1 n−K+1换到后面去
- 显然是无解的
话说为什么我要证得这么详细
AND OR Equation
GCD of Path Weights
边栏推荐
- OTA在线升级实践记录(仍需更新)
- 【组队 PK 赛】积分商城已开启 | 即刻兑换专属好礼
- 二维卷积中文微博情感分类项目
- À propos des outils d'édition XML
- 三子棋游戏的实现
- FigDraw 11. Violinplot of SCI article drawing
- Send a book at the end of the article | Douban 9.4 points, "Hello, world" originated from this book!
- How to connect to the database and display database information in idea.
- Testapi (node writes test interface without database, with basic data)
- FigDraw 15. Omiccircos of SCI article drawing
猜你喜欢
C language file operation management (Part 2)
深度解析字符串和内存函数
Excel中实用的3个数据透视表操作技巧,简单高效!
FigDraw 11. Violinplot of SCI article drawing
Keras MNIST Handwritten Digital Data Set Digital Recognition
Use Excel to make Gantt chart to track project progress (with drawing tutorial)
Dynamic password lock based on stm32
A very simple and beautiful login box
redis锁超卖解决问题
2022年软件测试最新面试题及解析
随机推荐
Threejst objects move at a constant speed
一维卷积英语电影评论情感分类项目
Wangeditor uncaught (in promise) error: the editor instance already exists in the initialization node, and the edit cannot be created repeatedly
Isn't it too much to play Gobang in idea?
What are the advantages of low code platforms over traditional IT development?
C语言结构体柔型数组
Network security architecture: axiom of security architecture
Principle and protection of DOM XSS
阶跃数特征
redis锁超卖解决问题
Hibernate method to prevent SQL injection attack
Three practical PivotTable operating skills in Excel, simple and efficient!
IP address forgery in security development
OTA在线升级实践记录(仍需更新)
Deep parsing strings and memory functions
Excel中实用的3个数据透视表操作技巧,简单高效!
DNA 10. Identify oncodrivecluster
【MySQL】临时表 &视图
【Jailhouse 文章】Certify the Uncertified Towards Assessment of Virtualization for Mixed-criticality...
Deep Residual Learning for Image Recognition--ResNet经典论文