提交时间:2024-02-07 15:40:38
运行 ID: 40100
#include <bits/stdc++.h> using namespace std; int main(){ double x ; cin>>x; int n; cin>>n; int i=1; while(i<=n){ x=x+x*0.001; i++; } cout << fixed << setprecision(4)<< x; return 0; }