Run ID:79546
提交时间:2024-07-07 22:07:53
#include <iostream> using namespace std; int main() { for(int A = 1;A<=9;++A) { for(int B = 0;B<=9;++B) { for(int C = 0;C<=9;++C) { if(A*A*A+B*B*B+C*C*C==A*100+B*10+C) { cout<<A*100+B*10+C<<endl; } } } } return 0; }