摘要: https://nanti.jisuanke.com/t/4 1389 解: 字符串hash二分跑回文串。 阅读全文
posted @ 2019-09-07 19:13 ZMWLxh 阅读(278) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/41387 解: 离散化+线段树。 阅读全文
posted @ 2019-09-07 19:10 ZMWLxh 阅读(299) 评论(0) 推荐(0)
摘要: https://nanti.jisuanke.com/t/41383 解: 斐波那契博弈+中国剩余定理。 阅读全文
posted @ 2019-09-07 19:06 ZMWLxh 阅读(225) 评论(0) 推荐(0)
摘要: 题意:https://codeforc.es/contest/1217/problem/D 给你一个有向图,要求一个循环里不能有相同颜色的边,问你最小要几种颜色染色,怎么染色? 思路: 如果没有环,那全是1;如果有环,那小到大的边为1,大到小的边为2。 阅读全文
posted @ 2019-09-07 09:49 ZMWLxh 阅读(345) 评论(0) 推荐(0)