Run ID | Author | Problem | Lang | Verdict | Time | Memory | Code Length | Submit Time |
---|---|---|---|---|---|---|---|---|
33601 | yanxiaorui | 人口增长 | C++ | Wrong Answer | 0 MS | 240 KB | 207 | 2023-12-10 19:43:39 |
#include<iostream> #include<iomanip> using namespace std; int main() { double n,x; int i=0; cin>>n>>x; while(i<=n){ i++; x=x*(1+0.001); } cout<<fixed<<setprecision(4)<<x; return 0; }