dalao求助,80分救急!!!(C++)

P1423 小玉在游泳

$stO \ \huge dalao!$
by t162 @ 2019-03-28 18:01:35


您可以参考一下我的: ```cpp #include <bits/stdc++.h> using namespace std; int main() { double n,i=2,sum=0,count=0; cin>>n; while(sum<n) { sum+=i; count++; i*=0.98; } cout<<count; return 0; } ```
by Eason_AC @ 2019-03-28 18:04:09


@[Bambusoideae](/space/show?uid=106140) 什么意思?
by Xiang_MR @ 2019-03-28 18:04:38


@[Eason_AC](/space/show?uid=112917) 你这个是用走了的路程比游的路程,感觉比我的那个要好的多,我理解了。谢谢!
by Xiang_MR @ 2019-03-28 18:07:26


@[项影v](/space/show?uid=190152) 甭谢
by Eason_AC @ 2019-03-28 19:02:42


@[项影v](/space/show?uid=190152) # 如此大佬? [请看他的个人空间](https://www.luogu.org/space/show?uid=190152)
by oistr @ 2019-03-28 19:03:31


@[zxp1863](/space/show?uid=180720) # 如此大佬? [请看他的个人空间](https://www.luogu.org/space/show?uid=180720)
by Yoo_ @ 2019-03-28 19:05:35


@[我的智商贼低](/space/show?uid=114677) # 怎么了??? # 我又没说我大佬
by oistr @ 2019-03-28 19:10:11


??
by ggzx1835 @ 2019-06-06 20:42:56


|