| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129924 | xujindong | 投资收益 | C++ | Accepted | 100 | 0 MS | 240 KB | 187 | 2024-01-27 14:36:08 |
#include<bits/stdc++.h> using namespace std; double m,r,w; int main(){ cin>>m>>r>>w; for(int i=1;;i++){ m+=m*r/100; if(m>=w)return cout<<i<<'\n',0; } return 0; }