Warning: session_start(): open(/tmp/sess_b951b74e3ea84643678d5f95ffbb05aa, O_RDWR) failed: No space left on device (28) in /data/wiki/inc/init.php on line 239
Warning: session_start(): Failed to read session data: files (path: ) in /data/wiki/inc/init.php on line 239
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/auth.php on line 430
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
Warning: Cannot modify header information - headers already sent by (output started at /data/wiki/inc/init.php:239) in /data/wiki/inc/Action/Export.php on line 103
====== 2020.05.17-2020.05.23 周报 ======
===== 团队训练 =====
^ 比赛时间 ^ 比赛名称 ^ 赛中过题 ^ 总计过题 ^ 总题目数 ^ 排名 ^
| 2020.05.23 | [[neerc2016 | NEERC 2016]] | 5 | 10 | 13 | 47 / 215 |
===== 团队会议 =====
===== 个人训练 - nikkukun =====
==== 比赛 ====
无
==== 学习总结 ====
主要在做字符串专题的相关练习,把板子和不熟悉的知识点都过了一遍。
==== 本周推荐 ====
=== NEERC 2016 B - Binary Code ===
[[https://codeforces.com/gym/281394|题目链接]]
2-SAT 好题,题意与题解[[neerc2016#B_-_Binary_Code|见此]]。
===== 个人训练 - qxforever =====
==== 比赛 ====
=== 2020.05.17 Educational Codeforces Round 87 ===
^ 题目 ^ A ^ B ^ C1 ^ C2 ^ D ^ E ^ F ^ G ^
| 通过 | √ | √ | √ | √ | √ | √ | | |
| 补题 | | | | | | | | |
==== 学习总结 ====
==== 本周推荐 ====
=== ===
[[|题目链接]]
===== 个人训练 - Potassium =====
==== 比赛 ====
无
==== 学习总结 ====
2020.5.19 [[.:potassium:lyndon|字符串1 - Lyndon 分解]]
==== 本周推荐 ====
=== 2015 ACM/ICPC Asia Regional Shanghai Online C Typewriter ===
[[http://acm.hdu.edu.cn/showproblem.php?pid=5470|题目链接]]
**题意**:有一个字符串 $s$ ,给定打印每一种字母的代价。你可以花费单个字母的代价进行一次打字,或花费 $len\times A+2\times B$ 的代价粘贴一段已经打印过的、长度为 $len$ 的字符串。求把这个字符串打印出来的代价最小值。
**题解**:很明显有 DP :设 $f(i)$ 表示打印前 $i$ 个字符的代价,则有递推式
$$ f(i)=\min\{f(i-1)+val(s_i),\min_{j
#include
#include
#include
#include