摘要: 并查集这个东西的结构还是很简单的。 P2391 白雪皑皑 \(link\) 对于题目,大多数人肯定会想到线段树,但是这道题的 \(m\) 太大了,以 \(Seg\) \(tree\) 的 \(O(mlog_n^2)\) 的复杂度绝对会 T 的。 所以这道题可谓是一道并查集绝世好题啊。 并查集是用来干 阅读全文
posted @ 2025-08-06 23:12 Kcjhfqr 阅读(8) 评论(0) 推荐(1)
.poem-wrap { position: relative; width: 1000px; max-width: 80%; border: 2px solid #797979; border-top: none; text-align: center; margin: 40px auto; } .poem-left { left: 0; } .poem-right { right: 0; } .poem-border { position: absolute; height: 2px; width: 27%; background-color: #797979; } .poem-wrap p { width: 70%; margin: auto; line-height: 30px; color: #797979; } .poem-wrap h1 { position: relative; margin-top: -20px; display: inline-block; letter-spacing: 4px; color: #797979; font-size: 2em; margin-bottom: 20px; } #poem_sentence { font-size: 25px; } #poem_info { font-size: 15px; margin: 15px auto; }