Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*100))*1000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

C++: #include "stdio.h"

#define DEBT 100000
#define INTEREST 5

int main()
{
	int n, m1;
	double debt, interest;

	debt = DEBT;
	interest = 1 + INTEREST/100.0;

	scanf("%d", &n);

	if (n > 100) return 0;

	for (int i = 0; i < n; i++){
		debt = (int)(debt * interest);

		if ((int)debt%1000 > 0) debt += 1000;
		debt -= (int)debt % 1000;
	}

	printf("%d\n", (int)debt);
}

C++: #include <iostream>

int main(){
	int n;
	std::cin >> n;
	double result=100;
	for(int i=n;i;i--){
		result*=1.05;
		result=(int)(result+0.9);
	}
	
	result*=1000;
	int i=result;
	std::cout << i;

	return 0;
}

C++: #include <iostream>
using namespace std;

int main() {
	int n;
	int money = 100000, copy;
	int m = 0;
	int M[1000];

	cin >> n;

	for(int i = 1; i <= n; i++) {
		money += money * 0.05;
	}

	copy = money;

	while(1) {
		copy /= 10;
		m++;
		if(copy == 0) {
			break;
		}
	}

	for(int i = 0; i < m; i++) {
		M[i] = money % 10;
		money /= 10;
	}

	for(int i = 0; i < m; i++) {
		if(i <= 3) {
			M[i] = 0;
		}
		else if(i == 4) {
			M[i] += 1;
			if(M[i] >= 10) {
				M[i + 1] += 1;
				M[i] = 0;
			}
			break;
		}
	}

	money = 0;

	for(int i = 1; i < m; i++) {
		money += M[i] * 10;
	}

	for(int i = m - 1; i >= 0; i--) {
		cout << M[i];
	}
	cout << endl;

}

C++: #include <iostream>

int main(){
int money = 100000;
int n;

std::cin >> n;

for(int i = 0; i < n; i++){
money *= 1.05;
money++;
money += 1000 - money % 1000;
}

std::cout << money << std::endl;

}

C++: #include <iostream>
using namespace std;

int main(){

  int n,tmp;
  int debt = 100000;

  cin >> n;

  while(n){
    debt *=  1.05;
    if( debt % 1000 > 0 ){
      debt += 1000;
      debt -= debt%1000;
    }
    n--;
  }

  cout << debt << endl; 
  return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   if(a < 100){
       for(int i = 0; i < a; i++){
           b *= 1.05f;
           b /= 1000;
           double c = ceil(b);
           b = c * 1000;
       }
       std::cout << b << std::endl;
   }
}

C++: #include <iostream>
using namespace std;

int main(){
  int n;
  int m=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    m *=1.05;
    if(m%1000>0) m = (m/1000+1)*1000;
  }
  cout<<m<<endl;
  return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll mod = 1e9 + 7;
const ll inf = (1 << 30) - 1;
const ll infll = (1LL << 61) - 1;

int r, ans = 100000;

int main()
{
    cin >> r;
    for (int i = 0; i < r; i++)
    {
        ans *= 1.05;
        if (ans % 1000 != 0)
            ans = ans - ans % 1000 + 1000;
    }
    cout << ans << endl;
}

C++: #include <iostream>

int main(int argc, const char * argv[]) {
    using namespace std;
    int n = 100000, t ;
    cin >> t;
    for (int i=1;i<=t;i++) {
        n *= 1.05;
        if (n%1000!=0)
            n += 1000-(n%1000);
    }
    cout << (int)n << "\n";
    return 0;
}

C++: #include <stdio.h>

int main(void)
{
	int n,m;
	
	m=100000;
	scanf("%d",&n);
	
	while(n>0)
	{
		m=(m*105)/100;
		if(m%1000>0)
		{
			m=((m/1000)+1)*1000;
		}
		n--;
	}
	
	printf("%d",m);
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int n;
    float a = 100000;
    cin >> n;
    for(int i =0; i < n; ++i){
        a = a * 1.05;
        a /= 1000;
        if(a - int(a) > 0)
            a += 1;
        a  = int(a);
        a *= 1000;
    }
    cout << a << endl;
    return 0;
}

C++: #include <bits/stdc++.h>
using namespace std;

int main(){
	double n,i,tmp;
	double ans=100000;
	cin>>n;
	while(n--){
		ans *= 1.05;
		ans = ceil(ans/1000.0)*1000.0;

	}
	printf("%.f\n", ans);
	return 0;
}

C++: #include <stdio.h>

int main(){
  int money=100000;
  int remain;
  int weeks;
  float temp;
  int i;

  scanf("%d", &weeks);
  for(i=0; i<weeks; i++){
    temp=(float)money*1.05f;
    money=(int)temp;
    remain=money%1000;
    money+=1000-remain;
  }
  printf("%d\n", money);

  return 0;
}

C++: #include <iostream>
using namespace std;

int main(void)
{
  int n;
  cin >> n;
  double ans = 100000.0;
  for(int i = 0; i < n; i++){
    ans = ans*1.05;
  }
  ans = (int)ans/10000;
  ans = ans+1;
  ans = ans*10000;

  cout << ans << endl;

  return 0;
}

C++: #include <cstdio>
#include <cmath>

int main(){
  int a=100000,n;
  scanf("%d",&n);
  
  while(n--){
    int b=a/20;
    a+=b-b%1000;
    if(b%1000!=0)
      a+=1000;
  }

  printf("%d\n",a);
}

C++: #include<iostream>
using namespace std;
int main() {
  int n;
  cin>>n;
  int m=100000;
  for(int i=0;i<n;i++)
    m*=1.05;
  if((m%10000)!=0) {
    m/=10000;
    m*=10000;
    m+=10000;
  }
  cout<<m<<endl;
  return 0;
}

C++: #include <iostream>
using namespace std;

int main(void) {
    int sum = 100000;
    int n;
    
    cin >> n;
    
    for(int i = 0; i < n; ++i) {
        sum *= 1.05;
        if((sum % 1000) != 0) {
            sum = (sum / 1000 + 1) * 1000;
        }
    }
    cout << sum << endl;
}

C++: #include<iostream>
#include<cstdio>
#include<cstring>
#include<iomanip>
#define LL long long
using namespace std;

int main(){
    int n;
    while(cin>>n){
        int debt=100000;
        while(n--){
            debt*=1.05;
            if(debt%1000!=0){
                debt=(debt/1000+1)*1000;
            }
        }
        cout<<debt<<endl;
    }
    return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
inline int ceil(double x, double base) {
    return ceil(x / base) * base;
}
int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);

    int n; cin >> n;
    cout << ceil(100000.0 * pow(1.05, n), 1000.0) << "\n";

    return 0;
}

C++: #include <iostream>
#include <string>
#include <cstdlib>
#include <cctype>
#include <math.h>

static bool input(int& n)
{
    if (0x00 == &n) {
        std::cerr << "n is null" << std::endl;
        return false;
    }

    std::string tmp("");
    char c = 0;

    std::cin >> c;
    if (std::isdigit(static_cast<int>(c))) {
        tmp = c;
    	n = std::atoi(tmp.c_str());
    }

    return true;
}

static double calcBalanceOfDebt(int n)
{
    double balance = 100000;

    for (int i = 1; i <= n; i++) {
        balance *= 1.05;
        balance = ceil(balance / 1000) * 1000;
    }

    return balance;
}

int main()
{
    int num = 0;

    input(num);
    std::cout << calcBalanceOfDebt(num) << std::endl;

    return 0;
}

C++: #include <iostream>

using namespace std;

int main() {
	int n; cin >> n;
	int ans = 100000;
	int tmp;
	for (int i=0; i<n; i++) {
		ans *= 1.05;
		tmp = ans / 1000 * 1000;
		if (tmp != ans) ans = tmp + 1000;
	}
	cout << ans << endl;
	return 0;
}

C++: #include<stdio.h>

int main()
{
	int n;
	scanf("%d", &n);
	int i;
	long long int total = 100000;
	for (i = 0; i < n; i++)
	{
		total = total*1.05;
		total = total / 100.0;
		if (total % 10 != 0)total = total + (10 - (total % 10));
		total = total * 100;
	}
	printf("%lld\n", total);
	return 0;
}

C++: #include <iostream>
using namespace std;
#define DEBT 100000
#define INTEREST 5 //%
int main()
{
	int n;
	int sumdebt=DEBT;
	cin >> n;
	for(int i = 0; i < n; ++i)
	{
		sumdebt = sumdebt + (int)sumdebt*((float)INTEREST/100);
		if(sumdebt % 1000 != 0)
		{
			sumdebt = sumdebt + (1000-(sumdebt%1000));
		}
	}

	cout << sumdebt << endl;
	return(0);
}