标签:利用 mst scanf 递推 输入 led print submit zzu
4
33
...
int main()
{
int i, n;
int fact, sum;
scanf("%d", &n);
sum = 0.0;
fact = 1.0;
for(i = 1; i <= n; i++)
{
fact *= i; //递推计算i!, 充分利用中间结果
sum += fact;
}
printf("%d\n", sum);
return 0;
}
标签:利用 mst scanf 递推 输入 led print submit zzu
原文地址:https://www.cnblogs.com/binanry/p/9217236.html