20分救命

P1423 小玉在游泳

t不应该是0.98吗
by kitakami @ 2018-05-27 14:17:05


呸 t是2
by kitakami @ 2018-05-27 14:17:17


@[Misaka_10032](/space/show?uid=103620) 嗯
by Obito @ 2018-05-27 15:11:24


```cpp #include<bits/stdc++.h> double x; int main() { std::cin>>x; std::cout<<ceil(log(1-x/100)/log(0.98)); return 0; } ``` # 自己看吧!题目太简单!不作回答!
by si_zhong @ 2018-05-27 15:16:55


@[萝莉大法好](/space/show?uid=56251) 谢谢!
by Mikato @ 2018-05-27 15:18:54


``` #include<stdio.h> int main() {float a,w,j; int s=0; scanf("%f",&w); a=2; do{ w-=a; a*=0.98; s++; }while(w>0); printf("%d",s); return 0; } ```
by Obito @ 2018-05-27 15:19:07


@[蒟蒻chi_chi](/space/show?uid=31728) 这么简单的题你都要抄题解鄙视蒟蒻
by autoint @ 2018-05-27 15:23:54


@[autoint](/space/show?uid=37834) 只是我懒得打而已。。。
by si_zhong @ 2018-05-27 15:24:38


#include<bits/stdc++.h> using namespace std; long double x,sum=2,n=2,ans=1; int main() { cin>>x; for(int i=1;sum<x;i++) { sum=sum+sum/100*98; n=sum; ans++; } cout<<ans; return 0; } 为啥20分
by Shui_Dream @ 2018-06-06 18:53:53


@[Misaka_10032](/space/show?uid=103620) 你的T是一直在/,T是打了0.98折吗
by Shui_Dream @ 2018-06-06 18:56:16


|