Run ID:69990

提交时间:2024-04-13 11:09:24

#include <bits/stdc++.h> using namespace std; int main (){ int i=100,q,w,e; for(int i=100;i<=999;i++){ q=i%10; w=i/10%10; e=i/10/10%10; if(q*q*q+w*w*w+e*e*e==i){ cout<<i<<' '; } } return 0; }