JZTXT
  • 首页
  • Ai
  • Java
  • Python
  • Android
  • Mysql
  • JavaScript
  • Html
  • CSS

打卡18

发布时间 2023-05-06 13:37:25作者: 临江柔

3.6

 

#include<bits/stdc++.h>
using namespace std;

int main()
{
int i,t,k,a[3]={0};
for(int i=2;i<1000;i++)
{
t=0;k=i;
while(k)
{
a[t++]=k%10;
k/=10;
}
if(i==pow(a[0],3)+pow(a[1],3)+pow(a[2],3))
cout<<i<<' ';
}
return 0;
}

    本栏目推荐文章
  • 代码随想录 day18 找树左下角的值 路径总和 从中序与后序遍历序列构造二叉树
  • P9871 [NOIP2023] 天天爱打卡
  • 三数之和与四数之和 18
  • Ubuntu 23.04、22.04、20.04、18.04替换国内源
  • UM2003A 一款200 ~ 960MHz ASK/OOK +18dBm 发射功率的单发射芯片
  • 18-权限分析:Kubernete 集群权限管理那些事儿
  • 【五期李伟平】CCF-A(MobiCom'18 Session EdgeTech'18)A Game-Theoretic Approach to Multi-Objective Resource Sharing and Allocation in Mobile Edge Clouds
  • 古代辞官的说法18种
  • ubuntu 18.04.6 编译内核kernel提示 Can't find default configuration "arch/x86/configs/socfpga_deconfig"!
  • 实验18:迭代器模式
版权声明:本网站为非赢利性站点,本网站所有内容均来源于互联网相关站点自动搜索采集信息,相关链接已经注明来源。
联系我们