'commit'
This commit is contained in:
13
TangDou/XiTi/1051.cpp
Normal file
13
TangDou/XiTi/1051.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main() {
|
||||
double x, n;
|
||||
cin >> x >> n;
|
||||
for (int i = 1; i <= n; i++) {
|
||||
x = x * (1 + 0.001);
|
||||
}
|
||||
cout << x << endl;
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user