#求大佬帮忙看看哪里有问题

P1423 小玉在游泳

```c #include<stdio.h> int main() { int i=0; double sum = 0, s = 2.0, x; scanf("%lf", &x); while(sum<x) { sum += s; s = s * 0.98; i++; } printf("%d", i); return 0; } ```
by Jerrlee✅ @ 2022-01-16 14:30:01


@[w3180756048](/user/630217) 您看一下可不可以过,`double` 读入应该是要用 lf 的
by Jerrlee✅ @ 2022-01-16 14:30:38


不想我,直接用cin(~~逃~~)
by lucas_jy @ 2022-01-16 14:38:16


@[w3180756048](/user/630217) 输入用cin吧 ~~这我12月AC的~~
by van_Dijk @ 2022-01-16 14:49:48


@[Jerrlee✅](/user/367652) 过了,非常感谢大佬,没注意到。
by w3180756048 @ 2022-01-16 15:08:03


|