题解 1156: C语言训练-阿姆斯特朗数(C-格式为空“一个”空格!!) 摘要:代码:#include<stdio.h> int main(void){ int i,j=0,a,b,c,product; int array[10]={0}; for(i=2…… 题解列表 2022年08月29日 0 点赞 0 评论 95 浏览 评分:0.0
C语言训练-阿姆斯特朗数-题解(C语言代码)水仙花数你懂我意思吧 摘要:解题思路:水仙花数代码拿来,改一下输出" ",而不是endl注意事项:参考代码:/* */ #include <cstdio> #include <algorithm> #include …… 题解列表 2020年08月25日 0 点赞 0 评论 414 浏览 评分:0.0
C语言训练-阿姆斯特朗数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> #include<string.h> int main() { int i,sum,s;…… 题解列表 2020年10月28日 0 点赞 0 评论 299 浏览 评分:0.0
C语言训练-阿姆斯特朗数-题解(C语言代码) 摘要:阿姆斯特朗数又称水仙花数. 与1119题相识,详情参见1119题https://blog.dotcpp.com/a/68909 与1120题重复,详情参见1120题https://blog.dot…… 题解列表 2021年02月22日 0 点赞 0 评论 494 浏览 评分:0.0
python解决阿姆斯特朗数 摘要:参考代码:# 获取n每一位的立方和 def DemoSum(n): r = 0 while n != 0: r += pow(n % 10, 3)   题解列表 2021年03月13日 0 点赞 0 评论 173 浏览 评分:0.0
题解 1156: C语言训练-阿姆斯特朗数 摘要:注意事项:题目说的“数之间用两个空格分开”,其实是一个空格!!一个数确定位数,然后根据位数,进行立方求和;遍历一遍就行。最后的结果用数组存储,输出最后一位时不保留空格。参考代码:#include <s…… 题解列表 2021年03月25日 0 点赞 0 评论 312 浏览 评分:0.0
编写题解 1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int i,x,y,result; for(i=2;i<=1000;i++)//for循环遍历大…… 题解列表 2021年08月03日 0 点赞 0 评论 193 浏览 评分:0.0
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:提交答案,显示基本正确,格式错误,没看出格式有什么问题。参考代码:#include<stdio.h>int n,m,a,b,c;void fun1(){ for(n=999;…… 题解列表 2022年01月27日 0 点赞 0 评论 320 浏览 评分:0.0
Hifipsysta-1156题-C语言训练-阿姆斯特朗数(C++代码)字符串转换法 摘要: ```cpp #include #include #include #include using namespace std; bool is_armstrong(int n){ …… 题解列表 2022年01月31日 0 点赞 0 评论 230 浏览 评分:0.0
C语言训练-阿姆斯特朗数 题解(c++易懂程序) 摘要:解题思路:就是水仙花数嘛!干嘛搞得这么高深!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ f…… 题解列表 2022年05月14日 0 点赞 0 评论 268 浏览 评分:0.0