提交时间:2025-07-07 17:38:05

运行 ID: 12174

#include<bits/stdc++.h> using namespace std; void a(int c){ 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 g,s,b,c = 100; while (c <= 999) { a(c); c++; } }