0分 第一个测试点显示错误 亲测无误 求改

P1423 小玉在游泳

@[SecureContainProtect](/user/1041068) ```cpp #include <bits/stdc++.h> using namespace std; int main(){ double s,sum=2; int cnt=1; cin>>s; s-=2; if(s==2){ cout<<1; return 0; } for(int i=2;s>=sum;i++){ sum*=0.98; cnt++; s-=sum; } cout<<cnt+1; return 0; } ``` ~~求关~~
by wei2013 @ 2024-02-14 09:54:49



by SecureContainProtect @ 2024-02-14 10:05:15


@[wei2013](/user/1060672) 已关注
by SecureContainProtect @ 2024-03-29 18:22:55


|