| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 129956 | 林扬皓bylz | 投资收益 | C++ | Accepted | 100 | 0 MS | 240 KB | 193 | 2024-01-27 14:39:41 |
#include <bits/stdc++.h> using namespace std; float bj,nl,qw; int n=0; int main() { cin>>bj>>nl>>qw; while(bj<=qw) { bj=bj+(bj*nl/100); n++; } cout<<n; return 0; }