第21900题 单选题
给定的求三位数阿姆斯特朗数的C++程序输出包含下列选项中的哪组数字?
#include<iostream>
using namespace std;
int main(){
    int g,s,b;
    for(int n=100;n<1000;n++)
    {
         b = n / 100;
         s = n / 10 % 10;
         g = n % 10;
         if(g*g*g+s*s*s+b*b*b==n)
         {
              cout<<n<<endl;
         }
    }
    return 0;
}
{{ option.label }}
子题{{ index + 1 }} {{ child.type_label }}
{{ option.label }}
✓ 正确 ◐ 部分正确 ✗ 错误
程序运行统计
暂无判题统计
提交{{ questionInfo.stats ? questionInfo.stats.submit_count : 0 }}次 正确率{{ statsAccuracy }}%
答案解析