今天做题用楼主大大发的运行的时候,最后输出的值总是差一个 403

,这是咋回事啊。我在同学的电脑上运行都可以。。下面附上我写的给大火看看捏。

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
printf("There are following Armstrong number smaller than 1000:\n");
int apx[1000]={0};
int x,y,z,i;
for(i=1;i<999;i++)
{
apx[i]=i+1;
x=apx[i]/100;
y=apx[i]/10%10;
z=apx[i]%10;
if(pow(x,3)+pow(y,3)+pow(z,3)==apx[i])
{
printf(" %d ",apx[i]);
}
}
}