摘要: 题目链接: #include <bits/stdc++.h> using namespace std; using i64 = long long; const int N = 1e6 + 10; int f[N], pre[N]; int main() { ios::sync_with_stdio 阅读全文
posted @ 2024-05-04 21:40 胖柚の工作室 阅读(12) 评论(0) 推荐(0)
摘要: 题目链接: 观察样例。当输入 \(n=6\) 时,6 本身算一个。当 6 后加的数为 1 时只有一个。6 后加的数为 2 时有 6 2,6 2 1 两个。6 后加的数为 3 时有 6 3、6 3 1 两个。可以看到,我们往 \(n\) 后加的每一个不超过 \(\dfrac{n}{2}\) 的数都可以 阅读全文
posted @ 2024-05-04 19:52 胖柚の工作室 阅读(71) 评论(0) 推荐(0)
摘要: 博客皮肤选择 SimpleMemory 行号和 Mac 风格均不选 博客侧边栏公告: <script type="text/javascript"> window.cnblogsConfig = { info: { name: 'pangyou3s', // 用户名 startDate: '2023 阅读全文
posted @ 2024-05-04 09:18 胖柚の工作室 阅读(32) 评论(0) 推荐(0)