#include<stdio.h>
int main()
{
int n,m,i;
double sum,x;
scanf("%d",&n);
x = 1;
sum = 0;
for(i=1;;i++)
{
x *= i;
sum += x;
if(sum >= n)
{
printf("m<=%d\n",i-1);
break;
}
}
return 0;
}
- List item
标签:不等式,求解,1058,double,sum,List,int,main
来源: https://blog.csdn.net/m0_52433518/article/details/113068374