题解 1164: 数组的距离

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

筛选

1164: 数组的距离

摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <math.h> int main() {     int m = 0, n = 0, f[1001] =……

【数组的距离】 (Java代码)

摘要:解题思路:把两个数组间的绝对值表示出来,然后相当于求最小值了注意事项:参考代码:import java.util.Scanner;public class xunlain1164 { public s……

【数组的距离】 (C语言代码)

摘要:解题思路:代码量少,简单易懂,就不写提示了 (苦笑)!!!注意事项:参考代码:#include<stdio.h>int main(){ int n,m,i,k,n1; int x[1000],y[10……

【数组的距离】 (C++代码)

摘要:解题思路:排序后判断两个数组大小是否重合注意事项:使用sort排序方便一点参考代码:#include<bits/stdc++.h>using namespace std;bool cmp(int a,……