题解列表

筛选

求圆的面积+公式

摘要:解题思路:圆面积=π*r*r注意事项:r=圆的半径参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){   ……

题解 2764: 带余除法

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

题解 1669: 求圆的面积

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include <iomanip>int main(){    double r;    c……

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;    ……

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

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

Yu:1022筛选N以内的素数

摘要:**解题思路:** 用a作标记,遍历2~n这些数。a = 1表示i为素数,a = 0表示非素数。 默认a = 1,如果发现可以被某个数整除,则可判断为非素数。标记a = 0,并退出循环。……

Yu: 1120水仙花数

摘要: **解题思路:** 使用while循环对每一位数拆解 **参考答案** ```c++ #include using namespace std; int main(){ ……

1021: [编程入门]迭代法求平方根

摘要:解题思路:说是迭代法求平方根,但没必要写一个函数进行迭代(因为迭代公式中a的值始终不变,我太菜了也不知道这种情况怎么写迭代函数),直接用while循环进行求解就好注意事项:需要设置一个中间变量m,用来……