听取WA一片

P1423 小玉在游泳

```c #include<bits/stdc++.h> double x; int main(){ std::cin>>x; std::cout<<ceil(log(1-x/100)/log(0.98)); return 0; } ``` 这是我的AC代码,你康一下。
by sunkewei1 @ 2023-06-17 14:45:54


@[Stare](/user/838728) cin的变量,你没用到?
by juruo_zxt @ 2023-06-17 14:48:15


@[sunkewei1](/user/964438) 谢谢大佬
by Traveller_Blanca @ 2023-06-17 14:48:18


``` #include <iostream> using namespace std; int main() { double s; cin>>s; double i=2; int j=1; double ikun=2; s-=2; while(ikun>s) { ikun+=i; i*=0.98; j++; } cout <<j; return 0; } ```
by Traveller_Blanca @ 2023-06-17 14:48:56


@[PHzxt](/user/780175) 改了
by Traveller_Blanca @ 2023-06-17 14:49:16


没事 提醒一下
by juruo_zxt @ 2023-06-17 14:49:56


@[PHzxt](/user/780175) 但问题在哪
by Traveller_Blanca @ 2023-06-17 14:50:26


@[Stare](/user/838728) 把`ikun>2`改成`ikun<s`即可 求关
by zhouzihe @ 2023-06-17 15:15:11


@[zhouzihe](/user/798537) 对,后来我会了,本贴结束 (你也关我吧)
by Traveller_Blanca @ 2023-06-17 20:50:47


|