题解列表

筛选

2765: 计算分数的浮点数值

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    double a,b;    cin>>a>>b; ……

2776: A*B问题

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    int a,b;    cin>>a>>b;    ……

简单易懂的解题思路

摘要:解题思路:利用while循环和for循环的小白解题思路。注意事项:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n);int a[n……

c语言链表的排序

摘要:```c #include #include typedef struct _student { int num; int score; }student; typedef stru……

[字符串复制]Sn的公式求和

摘要:解题思路:注意事项:参考代码:n = int(input()) Sum = 0 for i in range(1, n + 1):     Sum += int(&#39;2&#39; * i)……

[递归]阶乘求和

摘要:解题思路:递归注意事项:参考代码:def fact(n):     if n == 0 or n == 1:         return 1     else:        

Yu:1464: 蓝桥杯基础练习VIP-分解质因数

摘要:**解题思路:** 这道题虽然要求找到质因数,但其实不需要判断质数。 因为每个合数都可以拆解为n个质数,你只要从小到大的分解每个因数,就不存在合数。 例:8 = 2 * 2 * 2,……