肖英豪


私信TA

用户名:dotcpp0602020

访问量:2849

签 名:

睡大觉

等  级
排  名 2151
经  验 2379
参赛次数 7
文章发表 61
年  龄 0
在职情况 学生
学  校 内蒙古工业大学
专  业

  自我简介:

TA的其他文章

解题思路:

注意事项:

参考代码:

#include <iostream>
#include <cmath>
using namespace std;
int main()
{
    for (int t = 100; t < 999; t++)
    {
        if (t == pow(t % 10, 3) + pow(t / 10 % 10, 3) + pow(t / 100, 3))
            cout << t << endl;
    }

    return 0;
}


 

0.0分

1 人评分

  评论区