#include <stdio.h>
#include <stdlib.h>
int main()
{
int x,s=0,ys;
scanf("%d",&x);
x=x*x*x;
while (x>0)
{
ys=x%10;
s=s+ys*ys*ys;
x=x/10;
}
printf("%d\n",s);
return 0;
}
SDUT while循环之N^3问题
最新推荐文章于 2021-04-26 22:38:34 发布