蓝桥杯算法提高VIP-素数求和(不用一个一个枚举,解决时间超限问题) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ inline int sushu(int i);//使用(inl…… 题解列表 2022年02月04日 0 点赞 0 评论 324 浏览 评分:0.0
水仙花(这题可以偷懒,三位的水仙花数就四个) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int m; cin>>m; if(m==153||m==…… 题解列表 2022年02月04日 0 点赞 0 评论 413 浏览 评分:0.0
【露离】编写题解 1026: [编程入门]数字逆序输出 摘要:解题思路:两行搞定注意事项:参考代码:a=[i for i in input().split()]print(' '.join(a[::-1]))…… 题解列表 2022年02月04日 0 点赞 0 评论 373 浏览 评分:0.0
The 3n+1 problem 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <algorithm>using namespace std;long long len(long long n)…… 题解列表 2022年02月04日 0 点赞 0 评论 363 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:n = int(input())a = 0jiecheng = 1l = 0for i in range(1, n+1): a += 1 jiecheng *…… 题解列表 2022年02月04日 0 点赞 0 评论 320 浏览 评分:0.0
[露离】自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:注意题目中是直接输入,所以定义完主函数main()后,需要运行一下,即在最后一行输入main()参考代码:def gys(a,b):#最大公因数(gys) for i in …… 题解列表 2022年02月04日 0 点赞 0 评论 404 浏览 评分:0.0
Hifipsysta-1196-去掉空格(C++代码) 摘要:```cpp #include #include using namespace std; int main(){ string str, str_dup; while…… 题解列表 2022年02月05日 0 点赞 0 评论 395 浏览 评分:0.0
Hifipsysta-1172-计算两点间的距离(C++代码) 摘要:```cpp #include #include using namespace std; double distance(double x1, double y1, double x2,…… 题解列表 2022年02月05日 0 点赞 0 评论 491 浏览 评分: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 评论 484 浏览 评分: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 评论 266 浏览 评分:0.0