#include <iostream>
using namespace std;
int main() {
// (1)
// input: balance, r, holding_years
// output: balance for each year
int balance = 100, r = 10, holding_years = 10;
for (int i = 1; i <= holding_years; i++) {
balance *= (1 + r / 100.0);
cout << i << ": " << balance << endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CgkKCS8vICgxKQoJLy8gICAgIGlucHV0OiBiYWxhbmNlLCByLCBob2xkaW5nX3llYXJzCgkvLyAgICAgb3V0cHV0OiBiYWxhbmNlIGZvciBlYWNoIHllYXIKCWludCBiYWxhbmNlID0gMTAwLCByID0gMTAsIGhvbGRpbmdfeWVhcnMgPSAxMDsKCWZvciAoaW50IGkgPSAxOyBpIDw9IGhvbGRpbmdfeWVhcnM7IGkrKykgewoJCWJhbGFuY2UgKj0gKDEgKyByIC8gMTAwLjApOwoJCWNvdXQgPDwgaSA8PCAiOiAiIDw8IGJhbGFuY2UgPDwgZW5kbDsKCX0KCQoJCglyZXR1cm4gMDsKfQ==