看一下叭
#include<bits/stdc++.h> using namespace std; int main(){ int n; double x; cin>>x>>n; for(int i=1;i<n;i++){ x+=x/1000.0; } cout<<x; return 0; }