使用sort函数排序 摘要:解题思路:使用sort函数直接排序然后相减把结果相加注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool compare(int a,in…… 题解列表 2024年10月29日 0 点赞 0 评论 662 浏览 评分:7.3
最大配对(贪心) 摘要:解题思路:贪心注意事项:参考代码:#include<bits/stdc++.h>usingnamespacestd;constint…… 题解列表 2025年07月29日 0 点赞 0 评论 449 浏览 评分:0.0
1286: 最大配对 #include#include#include#includeusingnamespacestd;intmain(){intn;cin>>n;vectora(n), 题解列表 2025年11月12日 0 点赞 0 评论 365 浏览 评分:0.0