摘要: A home 首先写出一个 BFS 暴力。 找了找规律,发现最大值在“选取所有和为 \(\lfloor \frac{3n}{2} \rfloor\) 的三元组“时取到。模拟即可。 点击查看代码 #include <bits/stdc++.h> using namespace std; int n, 阅读全文
posted @ 2025-10-13 15:48 hhc0001 阅读(4) 评论(0) 推荐(0)