Little_koiCheese @ 2023-11-04 19:42:35
#include<stdio.h>
int main() {
int i = 1;
float m = 2.0;
float ret = 1.0;
int a = 0;
scanf("%d", &a);
while(ret<=a)
{
ret = ret+ 1.0 / m;
m++;
i++;
}
printf("%d\n", i);
return 0;
}
by 2021zjhs005 @ 2023-11-04 19:45:41
@Little_koiCheese
可能是
by Little_koiCheese @ 2023-11-04 19:48:18
@2021zjhs005 还真行了,那个ac是啥意思啊
by OIerWu_829 @ 2023-11-04 19:50:15
Accepted
的简写,通过的意思。
@Little_koiCheese
by 2021zjhs005 @ 2023-11-04 19:52:20
通过的意思,就是题目正确,没有答案错误。
by Little_koiCheese @ 2023-11-04 19:57:02
@wzj0829 谢谢谢
by Little_koiCheese @ 2023-11-04 19:57:37
@2021zjhs005 好哒