1084: 用筛法求之N内的素数(c++版) 摘要:** 具体代码:** ```cpp #include using namespace std; int main() { int n; cin >> n; for (int i …… 题解列表 2022年02月09日 0 点赞 0 评论 275 浏览 评分:0.0
1464: 蓝桥杯基础练习VIP-分解质因数 摘要:解法一:(利用递归,写法稍微麻烦) ```c #include int judge_prime(int n) { int count = 0; for (int j = 2…… 题解列表 2022年02月09日 0 点赞 0 评论 375 浏览 评分:9.9
1490: 蓝桥杯算法提高VIP-五次方数 摘要:解题思路:注意事项:参考代码:for i in range(2,300000): s=0 for j in str(i): s += int(j)**5 …… 题解列表 2022年02月09日 0 点赞 0 评论 302 浏览 评分:0.0
Hifipsysta-1585-蓝桥杯算法训练VIP-链表数据求和操作(C++代码)真链表数据域求和 摘要:```cpp #include using namespace std; const int MAXN = 100; struct node{ int real; in…… 题解列表 2022年02月09日 0 点赞 0 评论 365 浏览 评分:0.0
50行简单dfs-路径之谜 摘要:```cpp #include #include using namespace std; const int N=25; int n,a[N],b[N],vis[N][N]; int…… 题解列表 2022年02月09日 0 点赞 0 评论 582 浏览 评分:9.9
Hifipsysta-1052-[编程入门]链表合并(C++代码)循环链表的冒泡排序 摘要: ```cpp #include #include using namespace std; struct node{ int id; int score; …… 题解列表 2022年02月09日 0 点赞 0 评论 523 浏览 评分:0.0
C语言训练-求函数值 摘要:import sys sys.setrecursionlimit(1000000) def f(n): if n==1: return 10 elif n>1…… 题解列表 2022年02月09日 0 点赞 0 评论 469 浏览 评分:9.0
优质题解 最大体积(动态规划补空隙C++) 摘要:1. - 分析问题 首先,由扩展欧几里得算法,可以得出若x,y为正整数a,b为整数,**则ax+by=1有解是x与y互质的充要条件。** 所以当给出的体积互质时(所有体积的最大公约数为1),一定有…… 题解列表 2022年02月09日 0 点赞 4 评论 761 浏览 评分:9.9
C语言训练-求具有abcd=(ab+cd)2性质的四位数(三行代码搞定) 摘要:for i in range(1000,10000): if (i%100+i//100)*(i%100+i//100)==i: print(i,end=' …… 题解列表 2022年02月09日 0 点赞 0 评论 433 浏览 评分:9.9
C语言训练-求s=a+aa+aaa+aaaa+aa...a的值 摘要:a,n=map(int,input().split()) s=b=a for i in range(1,n): a=a*10+b s+=a print(s)解题思路:注意事项…… 题解列表 2022年02月09日 0 点赞 0 评论 487 浏览 评分:9.9