好菜哦自己感觉倒来倒去没到明白 摘要:解题思路: File "Main.py", line 8 lis[k]\uff0clis[len(lis)-1]=lis[len(lis)-1]\uff0clis[k] …… 题解列表 2022年05月25日 0 点赞 0 评论 176 浏览 评分:0.0
编写题解 1065: 二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:a = map(int,input().split())lis = []lis2 = []for i in list(a): #将a列表化,a的数…… 题解列表 2022年05月28日 0 点赞 0 评论 129 浏览 评分:0.0
1065: 二级C语言-最小绝对值 摘要:解题思路:首先看到这道题,第一想到的就是用数组来解决,因为后面涉及到交换,所以要储存这些数。其次,可以发现我们还要找到最小的那个数的位置(即i)。也要找到最小的那个数(打擂法)。这道题因为说明了是与“…… 题解列表 2022年05月28日 0 点赞 0 评论 143 浏览 评分:0.0
1065: 二级C语言-最小绝对值(指针运用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int ls[10]; for(int i=0;i<10;i++){ scanf("%d",…… 题解列表 2022年06月21日 0 点赞 0 评论 217 浏览 评分:0.0
补充:关于绝对值函数使用类型 摘要:解题思路:这题我一开始int类型结果用的fabs(),属实是小丑了。注意事项:整型:int abs(int i) 复数:double cabs(struct complex znum) 双精度浮点…… 题解列表 2022年07月27日 0 点赞 0 评论 132 浏览 评分:0.0
二级C语言-最小绝对值--朴素方法 摘要:解题思路:利用循环找到绝对值最小位,再让它与最后一位交换,最后输出注意事项:说的是绝对值最小,所以使用了abs()函数;Python中可以直接这样优雅地交换数据a,b=b,a;最初想用join()函数…… 题解列表 2022年09月10日 0 点赞 0 评论 879 浏览 评分:0.0
二级C语言-最小绝对值 摘要: #include #include #include #include using namespace std; int main() …… 题解列表 2022年10月15日 0 点赞 0 评论 134 浏览 评分:0.0
C语言 最小绝对值& 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#define LONG 10int main(){ int nums[LONG] …… 题解列表 2022年12月03日 0 点赞 0 评论 118 浏览 评分:0.0
1065: 二级C语言-最小绝对值 摘要:```cpp #include using namespace std; int a[10],ha[10],i,t; int main() { for(i=0;i…… 题解列表 2022年12月07日 0 点赞 0 评论 112 浏览 评分:0.0
利用绝对值函数abs求最小绝对值 摘要:解题思路:注意事项:注意abs的头文件stdlib.h参考代码:#include <stdio.h>#include <stdlib.h>int main(){ int a[10]; in…… 题解列表 2023年01月13日 0 点赞 0 评论 93 浏览 评分:0.0