摘要: 题目链接。 题意 给你一个长度为 \(n\) 的序列 \(a\)。 需要构造一个长度为 \(n\) 的非严格单调序列 \(b\),求出 \(\min_{i=1}^{n}\{|a_i-b_i|\}\)。 思路 感觉这题还挺难的。 首先我们需要证一个莫名其妙的东西,就是 \(b_i\in a(1\le 阅读全文
posted @ 2025-08-20 15:46 Kcjhfqr 阅读(13) 评论(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; }