
状态压缩dp
破晓aa
这个作者很懒,什么都没留下…
展开
-
D - Doing Homework HDU - 1074 (状态压缩DP)
Ignatius has just come back school from the 30th ACM/ICPC. Now he has a lot of homework to do. Every teacher gives him a deadline of handing in the homework. If Ignatius hands in the homework after th...原创 2018-08-04 09:14:48 · 380 阅读 · 0 评论 -
Codeforces Round #531 (Div. 3) F. Elongated Matrix (状态压缩dp)
题目链接题意:给出一个n * m矩阵,可以交换任意的两行,不能交换列,得到一个序列a[0][0], a[1][0], … a[0][1], a[1][1], …a[0][2], a[1][2], …以此类推,以Si代表这个序列的第i个元素,令k = min|Si - Si+1|,要求最终得到的k最大。思路:首先呢,看到题目中给的n才16,就该考虑往状态压缩方面去想一想了,那么接下来思...原创 2019-01-14 15:48:20 · 223 阅读 · 0 评论