摘要: 传送门:https://www.luogu.org/problem/P2679 这是个鬼的字符串啊,明明是dp好嘛,哼! 本人sb错误原因: dp转移方程不知道为啥,感觉就是这样,然后样例过了。也就过了...... #include<cstdio> #include<algorithm> #incl 阅读全文
posted @ 2019-10-27 21:16 Ryn_Honey 阅读(103) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.luogu.org/problem/P4568 跑个分层图。 有人说数组开小了,RE了,说实话我很蒙蔽。直接用d[i][j]表示到i已用了j条免费通道不就行了吗? #include<cstdio> #include<queue> #include<algorithm> 阅读全文
posted @ 2019-10-27 20:02 Ryn_Honey 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 传送门:https://www.luogu.org/problem/P1314 本SB犯得错误: 二分参数W,然后前缀和一下,逐个计算检验值Y。 不开longlong见祖宗 不开longlong见祖宗 不开longlong见祖宗 #include<cstdio> #include<cstring> 阅读全文
posted @ 2019-10-27 19:41 Ryn_Honey 阅读(170) 评论(0) 推荐(0) 编辑