使用sort函数排序
摘要:解题思路:使用sort函数直接排序然后相减把结果相加注意事项:参考代码:#include<bits/stdc++.h>using namespace std;bool compare(int a,in……
小白随便写的,记录一下
摘要:```python
def max_join(a, b, n):
a.sort()
b.sort(reverse=True)
max_join = 0 # 记录最大配……
1286: 最大配对-c++
摘要:解题思路:1.升序排序 2.a从头b从尾拼凑 头尾拼凑过程:1: 2 7 52: 3 6 83: 5 4 94: 6 1 14注意事项:数组一定要开大一点!! 参考代……
1286: 最大配对
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>#include<iomanip>#include<algorithm>using namespace ……
1286: 最大配对
摘要:```cpp
#include
#include
using namespace std;
const int N=1e5+10;
int a[N],b[N];
int main()
{……
最大配对——python
摘要:解题思路:注意事项:参考代码:n = int(input())L1 = list(map(int,input().split()))L2 = list(map(int,input().split())……