题解列表

筛选

求大于1小于1000的阿姆斯特朗数

摘要:解题思路:拆解数字各个位上的数字,并求出立方和注意事项:无参考代码:#include <stdio.h>#include <math.h>int main() {    for (int i = 1;……

水仙花数判断

摘要:解题思路:首先表示这个三位数范围在100到999之间,再表示其百位,十位及个位数字。最后验证其百位,十位及个位数字的三次方之和是否等于该数字。注意事项:三个数字的表示参考代码:#include<std……

直方图(C语言)

摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n]; int max=-1;//题目说……

[编程入门]密码破译

摘要:解题思路:自己看注意事项:参考代码:#include <stdio.h>void encryptPassword(char* str) {    int i = 0;    while (str[i]……

计算多项式的值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){    double x,a,b,c,d;    scanf("%lf %lf %……

2215: 蓝桥杯算法训练-1的个数

摘要:解题思路:注意事项:参考代码:#includeusing namespace std; int main() {     long long a;     int count=0;     ……

计算分数的浮点数值

摘要:解题思路:计算分数的浮点数值注意事项:b!=0参考代码:#include<stdio.h>int main(){    int a,b;    scanf("%d%d",&a,&b);    if(b……

2222: 蓝桥杯算法训练-P0103

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