[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n = int(input())a = 0jiecheng = 1l = 0for i in range(1, n+1): a += 1 jiecheng *…… 题解列表 2022年02月04日 0 点赞 0 评论 268 浏览 评分:0.0
[露离】自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:注意题目中是直接输入,所以定义完主函数main()后,需要运行一下,即在最后一行输入main()参考代码:def gys(a,b):#最大公因数(gys) for i in …… 题解列表 2022年02月04日 0 点赞 0 评论 358 浏览 评分:0.0
Hifipsysta-1196-去掉空格(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string str, str_dup; while…… 题解列表 2022年02月05日 0 点赞 0 评论 336 浏览 评分:0.0
Hifipsysta-1172-计算两点间的距离(C++代码) 摘要:```cpp #include #include using namespace std; double distance(double x1, double y1, double x2,…… 题解列表 2022年02月05日 0 点赞 0 评论 425 浏览 评分:0.0
Hifipsysta-1213题-幸运儿(C++)基于STL的循环链表 摘要:```cpp #include #include using namespace std; void print_lukky(int n){ list list_1; …… 题解列表 2022年02月05日 0 点赞 0 评论 430 浏览 评分:0.0
Hifipsysta-1203-多输入输出练习2(C++代码)不能用cmath中的M_PI 摘要:```cpp #include #include using namespace std; const double PI=3.1415; double circle_area(doub…… 题解列表 2022年02月05日 0 点赞 0 评论 214 浏览 评分:0.0
Hifipsysta-1202-多输入输出练习1(C++代码) 摘要:```cpp #include #include #include using namespace std; bool arrange_rule(int a, int b){ …… 题解列表 2022年02月05日 0 点赞 0 评论 264 浏览 评分:0.0
【露离】python1028: [编程入门]自定义函数求一元二次方程 摘要:解题思路:注意事项:注意有复数的情况,此时需要注意输出。因为python的复数单位是j,所以考虑format格式化输出。不能单纯的把▲取负再开方,否则会造成虚部和实部相加(或许你们不会犯此错误,反正我…… 题解列表 2022年02月05日 0 点赞 0 评论 368 浏览 评分:0.0
【露离】编写题解 1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:def sushu(): for i in range(2,n): if n%i==0: print('not prim…… 题解列表 2022年02月05日 0 点赞 0 评论 304 浏览 评分:0.0
【露离】1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:def zhuanzhi(): a=[input().split(),input().split(),input().split()] b=[[],[],[]…… 题解列表 2022年02月05日 0 点赞 0 评论 290 浏览 评分:0.0