???

P1423 小玉在游泳

@[s_lky201701](/user/740986) 请问你想说什么?
by 初星逝者 @ 2022-09-09 17:25:22


@[s_lky201701](/user/740986) ```cpp while(q>=s) ``` ???
by 初星逝者 @ 2022-09-09 17:28:12


@[s_lky201701](/user/740986) ```cpp #include<bits/stdc++.h> using namespace std; int main() { double s; int a=0; cin>>s; double v=2; double q=0; do { q=q+v; v=v*0.98; a=a+1; } while(q<s); cout<<a; } [改后的AC记录](https://www.luogu.com.cn/record/86178729)
by Elairin176 @ 2022-09-09 17:30:30


请您把 ```while(q>=s)``` 改成 ```while(q<=s)``` 就好了
by Tu_es_trop_belle @ 2022-09-09 17:31:57


栓可油
by ninging @ 2022-10-31 08:18:28


|