1554: 蓝桥杯算法提高VIP-素数求和 摘要:解题思路:注意事项:参考代码:n=int(input()) ls=[0 if i%2==0 else 1 for i in range(n+1)] ls[1],ls[2]=0,1 #print…… 题解列表 2022年04月21日 0 点赞 0 评论 358 浏览 评分:0.0
编写题解 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 评论 634 浏览 评分:9.9
一个用到列表的思路,可能麻烦点 摘要:解题思路:用list[-1]来解题注意事项:参考代码:a = int(input())list1 = [a,(a+1)/2]# print(list1[-1])if a == 0: print(…… 题解列表 2022年04月20日 0 点赞 0 评论 392 浏览 评分:0.0
1009: [编程入门]数字的处理与判断(C++清爽版) 摘要:解题思路:清爽的代码注意事项:注意数据不要越界参考代码:#include<iostream> #include<cstring> using namespace std; int main() …… 题解列表 2022年04月20日 0 点赞 1 评论 355 浏览 评分:9.9
编写题解 1740: 特殊排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<deque>#include<algorithm>void print(de…… 题解列表 2022年04月20日 0 点赞 0 评论 341 浏览 评分:0.0
C语言程序设计教程(第三版)课后习题8.8 (C语言代码) 摘要:解题思路:题目中说写一个函数,输入数字字符,进行数字间的分离,因此我们依靠字符串完成首先定义一个函数,创建一个数组。int seprate(char arr[])之后依靠循环逐个输出里面的元素并填入空…… 题解列表 2022年04月20日 0 点赞 0 评论 605 浏览 评分:9.9
1005: [编程入门]温度转换(C++) 摘要:解题思路:注意事项: 一定要注意输出的格式,是c=xx参考代码:#include<iostream> #include<iomanip> using namespace std; int mai…… 题解列表 2022年04月20日 0 点赞 0 评论 1871 浏览 评分:9.9
数据结构-二叉排序树的基本操作【C++】 摘要:```cpp #include using namespace std; int num[501]; int a[501]; int n, k; typedef struct node {…… 题解列表 2022年04月20日 0 点赞 0 评论 407 浏览 评分:9.9
编写题解 1738: 排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>#include<algorithm>void print(v…… 题解列表 2022年04月20日 0 点赞 0 评论 388 浏览 评分:0.0
编写题解 1716: 数据结构-快速排序 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<vector>#include<algorithm>void print(v…… 题解列表 2022年04月20日 0 点赞 0 评论 363 浏览 评分:0.0