摘要: 传送门:https://www.luogu.org/problem/P5020 这题刚开始一眼暴力,按着题意来一遍,然后就在某谷AC了...... #include<cstdio> #include<cstring> #include<algorithm> #define R register us 阅读全文
posted @ 2019-10-24 15:43 Ryn_Honey 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.luogu.org/problem/P1063 简单环形区间dp,把区间增大一倍,按照题意转移即可。 #include<cstdio> #include<algorithm> #define R register using namespace std; int n, 阅读全文
posted @ 2019-10-24 15:29 Ryn_Honey 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.luogu.org/problem/P3203 不会LCT,这题分块直接水。 记录一下走几步到下一个块,到下一个块的那个位置。 然后就没了。 #include<cstdio> #include<cmath> #define R register using names 阅读全文
posted @ 2019-10-24 15:19 Ryn_Honey 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.luogu.org/problem/P1941 关于此题,只能说细节吧。 然后转移方程什么的,就很显然了。初始状态f[0][0]记得赋值为极大值,那个状态是不合法滴! //代码真心丑,费时有点长。。。。。 #include<cstdio> #include<algor 阅读全文
posted @ 2019-10-24 11:51 Ryn_Honey 阅读(125) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-10-24 08:32 Ryn_Honey 阅读(7) 评论(0) 推荐(0) 编辑