```cpp
循环改成这样
while(a<d)
{
a+=len;
len*=0.98;
sum++;
}
```
by fth114514 @ 2024-07-25 15:54:23
你的代码里没有改变len的值
by fth114514 @ 2024-07-25 15:55:51
a一开始赋值成2也行吧?
by Pig3 @ 2024-08-11 15:02:22
sum再复制成1
by Pig3 @ 2024-08-11 15:02:52