| Run ID | 作者 | 问题 | 语言 | 测评结果 | 时间 | 内存 | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 77986 | sh25_yezy | 人口增长 | C++ | 通过 | 0 MS | 252 KB | 252 | 2025-12-26 15:11:47 |
#include<bits/stdc++.h> using namespace std; int main(){ int x, n; float ppl; cin>>x>>n; ppl=x*1.0; for(int i=0;i<n;i++){ ppl=ppl*1.001; //cout << i+1 << ' ' << ppl << endl; } cout<<fixed<<setprecision(4)<<ppl*1.0; return 0; }