提交时间:2024-11-08 19:27:41
运行 ID: 56016
#include<iostream> #include<cstdio> using namespace std; int main(){ for(int i=100;i<=999;i++){ int num1=i/100; int num2=i%100/10; int num3=i%10; if(num1*num1*num1+num3*num3*num3+num2*num2*num2==i) cout<<i<<endl; } return 0; }