Run ID Author Problem Lang Verdict Time Memory Code Length Submit Time
33594 yanxiaorui 人口增长 C++ Compile Error 0 MS 0 KB 195 2023-12-10 19:36:14

Tests(0/0):


#include<iostream> 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<<endl; return 0; }


Judgement Protocol: