只能说,牛啊,要更加努力学习了 摘要:``详见代码即可 #include #include int main() { int f[1000]; int g[100…… 题解列表 2023年05月20日 0 点赞 0 评论 320 浏览 评分:0.0
数组的距离 摘要:解题思路:调用了fabs()这个库函数去计算了绝对值(调用此库函数的头文件为<cmath>),不断用一个变量t去保存绝对值小的值注意事项:参考代码:#include<bits/stdc++.h>usi…… 题解列表 2023年05月01日 0 点赞 0 评论 268 浏览 评分:0.0
敲简单C语言代码!!! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main (){ int c,d,i,j; scanf ("%d %d",&c,&d…… 题解列表 2022年11月05日 0 点赞 0 评论 357 浏览 评分:0.0
小白能看懂的 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cmath> using namespace std; int main() { int m =…… 题解列表 2023年01月17日 0 点赞 0 评论 250 浏览 评分:0.0
【数组的距离】 (Java代码) 摘要:解题思路:把两个数组间的绝对值表示出来,然后相当于求最小值了注意事项:参考代码:import java.util.Scanner;public class xunlain1164 { public s…… 题解列表 2018年04月06日 0 点赞 0 评论 1301 浏览 评分:0.0
【数组的距离】 (C++代码) 摘要:解题思路:排序后判断两个数组大小是否重合注意事项:使用sort排序方便一点参考代码:#include<bits/stdc++.h>using namespace std;bool cmp(int a,…… 题解列表 2019年03月01日 0 点赞 0 评论 555 浏览 评分:0.0
【数组的距离】这题目有点怪,貌似不需要排序吧 摘要:/*这题目有点怪,貌似不需要排序吧,就只是求最小的元素|差|*/ #include<stdio.h> #include"malloc.h" #include"math.h" int main(…… 题解列表 2018年11月21日 1 点赞 0 评论 1034 浏览 评分:0.0
【数组的距离】 (C++代码) 摘要:解题思路:注意事项:C++是世界上最好的语言参考代码:#include <iostream>#include <vector>#include <algorithm>#include <math.h>…… 题解列表 2018年10月06日 0 点赞 0 评论 1835 浏览 评分:0.0
【数组的距离】 (C语言代码) 摘要:解题思路:题目不是要求两个数组彼此之间差的绝对值中最小的一个吗?那就一个个算,m,n的范围不大,哪个最小,min就存储哪个的值,负数也能计算。注意事项:参考代码:#include<stdio.h> …… 题解列表 2018年10月04日 1 点赞 0 评论 915 浏览 评分:0.0
比较简单的做法,可AC 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>int cmp(const void * a,const void *b){ return *…… 题解列表 2018年09月29日 0 点赞 0 评论 976 浏览 评分:0.0