我写的有点复杂,死办法,将就看就好了 摘要:解题思路:注意事项:参考代码:list=list(map(int,input().split()))list2=[i for i in list if i>=0]list3=[v for v in l…… 题解列表 2022年05月03日 0 点赞 0 评论 355 浏览 评分:0.0
C++ 最小绝对值 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int a[10], i = 0, te…… 题解列表 2022年05月02日 0 点赞 0 评论 509 浏览 评分:0.0
纯粹手贱,不能理解,没有关系 摘要:解题思路:纯粹手贱,不能理解,没有关系注意事项:前方高能,注意避让参考代码:#include<stdio.h>int main(){ int a[10] = { 0 }; int b[10] = {0…… 题解列表 2022年04月29日 0 点赞 0 评论 288 浏览 评分:0.0
1065: 二级C语言-最小绝对值 摘要:解题思路:分成四步:(1)输入10个数:用for()循环存入数组(2)找最小值:用minIndex存储最小值位置,跟着for循环一起更新(3)交换:直接swap()(4)输出:for()循环输出数组注…… 题解列表 2022年04月02日 0 点赞 0 评论 964 浏览 评分:7.3
分类讨论????感觉很复杂????? 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().strip().split()))zheng=[]fu=[]for i in a: if i>=0: z…… 题解列表 2022年03月30日 0 点赞 0 评论 329 浏览 评分:0.0
题解 1065: 二级C语言-最小绝对值 摘要:解题思路:函数 min 获得最小值列表方法 index 获得下标两位置值交换即可注意事项:务必注意,是在原始输入的10个数中调换位置错了4遍才看出来参考代码:arr = list(map(int,in…… 题解列表 2022年03月28日 0 点赞 1 评论 739 浏览 评分:6.0
(简单易懂)二级C语言-最小绝对值(数组) 摘要:解题思路:利用两个数组a[i],b[i],其中a[i]用于存储输入的原数据,b[i]用于存储原数据的绝对值,在b[i]在筛选出最小值,保留其下标k=i。交换a[k]与a[9],输出a[i].注意事项:…… 题解列表 2022年03月25日 0 点赞 0 评论 365 浏览 评分:0.0
二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; for(int i=0;i<10;i++) { scan…… 题解列表 2022年03月07日 0 点赞 0 评论 276 浏览 评分:0.0
求最小绝对值 摘要:```cpp #include using namespace std; int main() { int a[11],b[11]; for(int i=0;i>a[i]; b…… 题解列表 2022年03月04日 0 点赞 0 评论 317 浏览 评分:0.0
二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))b=[abs(i) for i in a]index=b.index(min(b))a[index],a[…… 题解列表 2022年02月22日 0 点赞 0 评论 306 浏览 评分:0.0