8 求月利率
include
include<string.h>
include<stdio.h>
include
include <ctype.h>
using namespace std;
int main() {
int a, b, c;
cin >> a >> b >> c;
double low = 0.0, high = 300.0, mid;
while (high - low > 0.001) {
mid = (low + high) / 2;
double t = a;
for (int i = 0; i < c; i++) {
t += t * mid / 100;
t -= b;
}
if (t >0) { high = mid; }
else { low = mid; }
}
cout << a << b << c <<low<<high<< endl;
printf("%.1f", (low + high) / 2);
return 0;
}