提交时间:2024-02-06 22:13:48
运行 ID: 40046
#include <bits/stdc++.h> using namespace std; int main(){ int i = 100; while(i <= 999) { int a = i % 10; int b = i / 10 % 10; int c = i / 100 % 10; if(i == a*a*a + b*b*b + c*c*c) { cout << i << " "; } i++; } return 0; }