solution.cpp 261 字节
Newer Older
每日一练社区's avatar
每日一练社区 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13
#include <iostream>
using namespace std;
int main()
{
	for (int i = 11; i < 35; i++)
	{
		int i1 = i * i * i;
		int i2 = i * i1;
		if ((i1 >= 1000 && i1 < 10000) && (i2 >= 100000 && i2 < 1000000))
			cout << i << " " << i1 << " " << i2 << endl;
	}
	return 0;
}