好像4个 153,370,371,407 朋友算的
[HR]
#include <iostream>
using namespace std;
int main( void )
{
int a, b, c;
for ( int x = 100; x < 1000; x++ )
{
a = x/100;
b = (x - a*100)/10;
c = x - 100*a - 10*b;
if( x == ( a*a*a + b*b*b + c*c*c ) )
cout<<x<<'\n';
}
return 1;
}
[此贴子已经被作者于2004-12-10 22:30:16编辑过]