Run ID:78357
提交时间:2024-06-18 19:35:44
#include<iostream> using namespace std; int main() { int ge,shi,bai,i; for(i=100;i<1000;i++){ bai=i/100; shi=i/10%10; ge=i%10; if(i==(bai*bai*bai)+(shi*shi*shi)+(ge*ge*ge)){ printf("%d ",i); } } cout<<endl; return 0; }