题解 1286: 最大配对

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

P1019 (C++代码)

摘要:解题思路:                要想使差值最大,直接把两个数组排序,最大减最小。                C++里面有一个sort函数,使用非常方面,并且效率也很高,这

P1019 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main() { int n; scanf("%d", &n); int a[n], b[n……

P1019 (C++代码)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> #include<algorithm> using namespace std; const……