三个嵌套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 评论 132 浏览 评分:0.0
[编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){ int i,a,b,c; f…… 题解列表 2024年02月08日 0 点赞 0 评论 310 浏览 评分:0.0
1016: [编程入门]水仙花数判断 摘要:for i in range(100, 1000): temp = i num1 = temp % 10 temp //= 10 num2 = temp % 10 tem…… 题解列表 2024年02月26日 0 点赞 0 评论 142 浏览 评分:0.0
编写题解 1016: [编程入门]水仙花数判断 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { for(int i=153;i<10…… 题解列表 2024年04月20日 0 点赞 0 评论 296 浏览 评分:0.0
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 评论 158 浏览 评分: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 评论 90 浏览 评分:0.0
分阶段咖啡粉就更加丰富和空间 摘要:解题思路:无注意事项:无参考代码:k=99while k<999: k=k+1 bai=k/100 bai=int(bai) shi=(int)((k-bai*100)/10)…… 题解列表 2024年07月07日 0 点赞 0 评论 129 浏览 评分:0.0
新手写水仙花数判断(c++已过) 摘要:解题思路:由于确定为三位数,所以直接求各位数字即可注意事项:参考代码:#include<iostream>using namespace std;int main(){ for(int i=10…… 题解列表 2024年11月08日 1 点赞 0 评论 388 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int b,c,d,i; for(i=100;i<1000;i++)…… 题解列表 2024年11月13日 0 点赞 0 评论 293 浏览 评分:0.0
1016: [编程入门]水仙花数判断(暴力解答) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main() { int b, n, i, sum; for (i = 100;…… 题解列表 2024年11月15日 0 点赞 0 评论 531 浏览 评分:0.0