编写题解 1112: C语言考试练习题_一元二次方程(python) 摘要:运用一元二次求根公式即可,无需考虑无实数解的情况a,b,c = map(int, input().split()) x1 = (-b + pow(pow(b, 2) - 4 * a * c, 0.5…… 题解列表 2022年04月21日 0 点赞 0 评论 833 浏览 评分:9.9
一个用到列表的思路,可能麻烦点 摘要:解题思路:用list[-1]来解题注意事项:参考代码:a = int(input())list1 = [a,(a+1)/2]# print(list1[-1])if a == 0: print(…… 题解列表 2022年04月20日 0 点赞 0 评论 601 浏览 评分:0.0
1009: [编程入门]数字的处理与判断(C++清爽版) 摘要:解题思路:清爽的代码注意事项:注意数据不要越界参考代码:#include<iostream> #include<cstring> using namespace std; int main() …… 题解列表 2022年04月20日 0 点赞 1 评论 494 浏览 评分:9.9
编写题解 1740: 特殊排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<deque>#include<algorithm>void print(de…… 题解列表 2022年04月20日 0 点赞 0 评论 560 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:题目中说写一个函数,输入数字字符,进行数字间的分离,因此我们依靠字符串完成首先定义一个函数,创建一个数组。int seprate(char arr[])之后依靠循环逐个输出里面的元素并填入空…… 题解列表 2022年04月20日 0 点赞 0 评论 839 浏览 评分:9.9
1005: [编程入门]温度转换(C++) 摘要:解题思路:注意事项: 一定要注意输出的格式,是c=xx参考代码:#include<iostream> #include<iomanip> using namespace std; int mai…… 题解列表 2022年04月20日 0 点赞 0 评论 2107 浏览 评分:9.9
数据结构-二叉排序树的基本操作【C++】 ```cpp#includeusingnamespacestd;intnum[501];inta[501];intn,k;typedefstructnode{intdata;node*lchild;node*rchild;}*Tree,TNode;TreeT=NULL;//递归实现:插入操作生成二叉排 题解列表 2022年04月20日 0 点赞 0 评论 670 浏览 评分:9.9
编写题解 1738: 排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>#include<algorithm>void print(v…… 题解列表 2022年04月20日 0 点赞 0 评论 600 浏览 评分:0.0
编写题解 1716: 数据结构-快速排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>#include<algorithm>void print(v…… 题解列表 2022年04月20日 0 点赞 0 评论 598 浏览 评分:0.0
条件操作符,找最大值 摘要:解题思路:运用条件操作符,exp1?xep2:exp3 意为,如果exp1成立,则执行exp2;否则执行exp3,最后打印出来即可注意事项:参考代码:int main(){ int a, b,…… 题解列表 2022年04月20日 0 点赞 0 评论 640 浏览 评分:0.0