基础训练 特别的数字

Posted a-little-nut

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了基础训练 特别的数字相关的知识,希望对你有一定的参考价值。

特别的数字

#include<iostream>
using namespace std;
int main(){
    for(int i=100; i<=999; i++){
        int a=i/100; int b=(i%100)/10; int c=i%10;
        if(i==(a*a*a+b*b*b+c*c*c))
            cout<<i<<endl; 
    }
    return 0;
} 

以上是关于基础训练 特别的数字的主要内容,如果未能解决你的问题,请参考以下文章