提交时间:2024-02-07 15:39:37
运行 ID: 40099
#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; }