dotcpp0701235


私信TA

用户名:dotcpp0701235

访问量:830

签 名:

等  级
排  名 4093
经  验 1733
参赛次数 0
文章发表 23
年  龄 0
在职情况 学生
学  校
专  业

  自我简介:

解题思路:

注意事项:

参考代码:

#include<stdio.h>

#include<math.h>

int main()

{

    int x,a,b,c;

    x=100;

    while(x<=999)

    {

        a=x/100;

        b=x%100/10;

        c=x%10;

        if(x==pow(a,3)+pow(b,3)+pow(c,3))

        printf("%d\n",x);

        x++;

    }

    return 0;

}


 

0.0分

1 人评分

  评论区

  • «
  • »