题解 1164: 数组的距离

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

筛选

python解决数组的距离

摘要:解题思路:注意事项:参考代码:m, n = map(int, input().strip().split()) f = list(eval(input().replace(' ', ……

1164: 数组的距离

摘要:```java import java.util.Scanner; public class 测试 { public static void main(String[] a……

数组的距离

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

小白能看懂的

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

数组距离qdqdqwd

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

数组的距离(双指针)

摘要:解题思路:用双指针遍历两个数组,来找最小距离,如果此时左指针指向的元素小于有指针指向的元素,则让左指针加1,否则让右指针加1,如果两者指向的元素一样,则已经到了最小距离,跳出循环。注意事项:参考代码:……

c语言的一种思路

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<limits.h>#include<math.h>#include<stdlib.h>int main(){    i……

敲简单C语言代码!!!

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