提交时间:2025-07-07 17:38:36
运行 ID: 12175
#include<bits/stdc++.h> using namespace std; void a(int c){ int g,s,b; b = c / 100; s = c / 10 % 10; g = c % 10; if (b * b * b + s * s * s + g * g * g == c) { cout<<c<<endl; } } int main() { int c = 100; while (c <= 999) { a(c); c++; } }