题解 1164: 数组的距离

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

筛选

非常ez,随便看懂

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

数组的距离题解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    int n,m;    int ans;    cin……

1164: 数组的距离

摘要:解题思路:没想到暴力破解直接过了,两个数组每个数都减一遍最后输出最小的注意事项:参考代码:#include<bits/stdc++.h> using namespace std; bool big……

小白能看懂的

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() {     int m =……

数组的距离

摘要:解题思路:调用了fabs()这个库函数去计算了绝对值(调用此库函数的头文件为<cmath>),不断用一个变量t去保存绝对值小的值注意事项:参考代码:#include<bits/stdc++.h>usi……

1164: 数组的距离

摘要:```c++ #include int main() { int *p = nullptr; int *q = nullptr; int m, n; c……