阿姆斯特朗数(C++简易版本)只需要一个空格!!! 摘要:解题思路:注意事项:参考代码:#include <iostream>#include<set>using namespace std;int main(){ int i,a=0,b=0,c=0,d=…… 题解列表 2023年01月07日 0 点赞 0 评论 463 浏览 评分:0.0
C语言训练-阿姆斯特朗数-题解(C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> #include<string.h> int main() { int i,sum,s;…… 题解列表 2020年10月28日 0 点赞 0 评论 802 浏览 评分:0.0
C语言训练-阿姆斯特朗数-题解(C语言代码) 摘要:阿姆斯特朗数又称水仙花数. 与1119题相识,详情参见1119题https://blog.dotcpp.com/a/68909 与1120题重复,详情参见1120题https://blog.dot…… 题解列表 2021年02月22日 0 点赞 0 评论 1037 浏览 评分:0.0
python解决阿姆斯特朗数 摘要:参考代码:# 获取n每一位的立方和 def DemoSum(n): r = 0 while n != 0: r += pow(n % 10, 3)   题解列表 2021年03月13日 0 点赞 0 评论 379 浏览 评分:0.0
题解 1156: C语言训练-阿姆斯特朗数 摘要:注意事项:题目说的“数之间用两个空格分开”,其实是一个空格!!一个数确定位数,然后根据位数,进行立方求和;遍历一遍就行。最后的结果用数组存储,输出最后一位时不保留空格。参考代码:#include <s…… 题解列表 2021年03月25日 0 点赞 0 评论 611 浏览 评分:0.0
题目不是讲两个空格吗?提交的是一个空格才是正确的???? 摘要:```c # include int main(void){ for(int i=2;i…… 题解列表 2021年06月10日 0 点赞 0 评论 482 浏览 评分:0.0
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:提交答案,显示基本正确,格式错误,没看出格式有什么问题。参考代码:#include<stdio.h>int n,m,a,b,c;void fun1(){ for(n=999;…… 题解列表 2022年01月27日 0 点赞 0 评论 698 浏览 评分:0.0
Hifipsysta-1156题-C语言训练-阿姆斯特朗数(C++代码)字符串转换法 摘要: ```cpp #include #include #include #include using namespace std; bool is_armstrong(int n){ …… 题解列表 2022年01月31日 0 点赞 0 评论 502 浏览 评分:0.0
C语言训练-阿姆斯特朗数 题解(c++易懂程序) 摘要:解题思路:就是水仙花数嘛!干嘛搞得这么高深!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int a,b,c;int main(){ f…… 题解列表 2022年05月14日 0 点赞 0 评论 606 浏览 评分:0.0
1156:C语言训练-阿姆斯特朗数 摘要:```c #include #include int main(){ int i = 2; for(i;i0){ c = flag%10; sum += pow(c,…… 题解列表 2022年06月04日 0 点赞 0 评论 527 浏览 评分:0.0