#include <iostream>
#include <windows.h>
#include <string>
using namespace std;
int main(void) {
	int a, b, c;
	for (int i = 100; i <= 999; i++) {
		a = i % 10;
		b = i / 10 % 10;
		c = i / 100;
		if (a * a * a + b * b * b + c * c * c == i) {
			cout << i << endl;
		}
	}
	system("pause");
	return 0;
}

  

posted on 2022-08-08 19:00  wshidaboss  阅读(106)  评论(0编辑  收藏  举报