自顶
by 藤林椋 @ 2017-11-05 10:21:43
这里是级数求和的讨论区诶
by SJC_03 @ 2017-11-05 10:35:04
@[御星璃](/space/show?uid=61882) #include <iostream>
```cpp
#include <cmath>
using namespace std;
int main()
{
double a;//路程
cin >> a;
int b=0;
while (a>0)
{
a-=2*pow(0.98,b);//游b+1次后的剩余路程
b++;
}
cout << b;
return 0;
}拿去,不谢。。
```
by noip起爆 @ 2017-11-05 18:28:35