题解 1156: C语言训练-阿姆斯特朗数

来看看其他人写的题解吧!要先自己动手做才会有提高哦! 
返回题目 | 我来写题解

筛选

阿姆斯特朗数易懂

摘要:解题思路:注意事项:参考代码:public class AMuSiTeLangShu {    public static void main(String[] args) {        doub……

阿姆斯特朗数

摘要:解题思路:注意事项:hhh其实只用隔一个空格,被骗啦嘻嘻参考代码:#include<stdio.h>int main(){    int i,a,b,c,s;    for(i=2;i<1000;i+……

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

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

很简单的python代码

摘要:解题思路:注意事项:参考代码:for i in range(2,1000):    total_sum = 0    array1 = list(str(i))    for digit in arr……

阿姆斯特朗数(保证你会C++)

摘要:解题思路:我开始主要难点在于分离每一个数,有的有2个,有的有3个,建议写个每个数的处理函数,阶乘同理,都可以套用注意事项:参考代码:#include<iostream>using namespace ……

阿姆斯特朗数

摘要:注意事项:从小到大输出,数之间用两个空格分开但实际上只需要一个空格参考代码:#include<iostream>#include<math.h> using namespace std;int mai……