三个嵌套for循环+pow函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> //pow函数的头文件int main(){ int a,b,c,cn,sn; cn=sn=0;…… 题解列表 2024年02月04日 0 点赞 0 评论 106 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int i,a,b,c; f…… 题解列表 2024年02月08日 0 点赞 0 评论 103 浏览 评分:0.0
Jayden-[解释通俗易懂,一看就会! ] 水仙花数判断 摘要:解题思路:一个简单的for循环遍历每一个数字,根据公式判断是否满足水仙花数的条件。注意事项:注意遍历每一个数的个位、十位和百位的取值方法,有多种,不止以下代码中的一种哦。参考代码:#include<s…… 题解列表 2024年02月25日 0 点赞 1 评论 81 浏览 评分:9.9
1016: [编程入门]水仙花数判断 摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem…… 题解列表 2024年02月26日 0 点赞 0 评论 97 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { for(int i=153;i<10…… 题解列表 2024年04月20日 0 点赞 0 评论 111 浏览 评分:0.0
转化为数组 摘要:解题思路:强制类型转换求和注意事项:无参考代码:for i in range(100,1000): my_str = str(i) sum = int(my_str[0]) ** 3 + …… 题解列表 2024年04月21日 0 点赞 0 评论 225 浏览 评分:9.9
1016 水仙花数的判断(使用math.h) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){for(int n=100;n<1000;n++){int m,h,k;m=n/1…… 题解列表 2024年05月12日 0 点赞 0 评论 121 浏览 评分:0.0
水仙花数判断(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ int a=0,b=0,c=0; for(int i=100;i<1000;i++){ …… 题解列表 2024年05月28日 0 点赞 0 评论 62 浏览 评分:0.0
水仙花数判断(C语言运用定义函数) 摘要:解题思路:将范围内某一个三位数分离成三个数,计算判断是否为水仙花数,将数循环带入输出。注意事项:注意所循环范围!参考代码:#include<stdio.h>int f(int a){ int b…… 题解列表 2024年06月21日 0 点赞 0 评论 100 浏览 评分:9.9
水仙花数判断 摘要:解题思路:先编写一段函数用来判断水仙花数在主函数里面直接引用输出100到999之间符合的数注意事项:else区别参考代码:一:#include<stdio.h>int f(int a){ int…… 题解列表 2024年06月21日 0 点赞 1 评论 98 浏览 评分:9.9