Go: package main

import (
	"fmt"
	"math"
)

const (
	INTEREST float64 = 0.05
	DEBT     int     = 100000
)

func main() {
	var x int
	interestDebt := DEBT
	fmt.Scanf("%d", &x)
	for i := 0; i < x; i++ {
		interestCalc := MakeCalcInterest(float64(interestDebt)) + int(interestDebt)
		interestDebt = RoundUp(float64(interestCalc))
	}
	fmt.Printf("%d\n", interestDebt)
}

func MakeCalcInterest(x float64) int {
	return int((x * INTEREST))
}

func RoundUp(x float64) int {
	return int(math.Ceil(x*0.001) * 1000)
}

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

int main(){
	int week,a,b,ans,aans;
	cin>>week;
	a=100000*0.05;
	b=week+1;
	a*=b;
	ans=100000+a;
	aans=ans/1000;
	aans=ans*1000;
	if(aans!=ans)ans+100;
	cout<<ans<<endl;
}

C++: #include<iostream>
#include<cmath>
int main(){
	double yami = 100.000;
	int n;
	std::cin >> n;
	for(int i = 0;i < n; ++i){
		yami *= 1.05;
		if(ceil(yami) != floor(yami)){
			yami = ceil(yami);
		}
	}yami *= 1000;
	std::cout << yami << '\n';
	return 0;
}

C++: #include<stdio.h>

int main(){
	double num=100000;
	int i,n,sum=0;
	
	scanf("%d",&n);
	
	for(i=0;i<n;i++){
		num=(double)num*1.05;
	}
	num=(double)num/10000;
	sum=num+0.9;
	sum=sum*10000;
	
	printf("%d\n",sum);
	return 0;
}

C++: /*****include*****/
#include <iostream>
#include <fstream>

/*****デバッグ定義*****/
//#define DEBUG
/*****マクロ定義*****/

/*****名前空間*****/
using namespace std;

/*****グローバル変数置き場*****/

/*****その他関数置き場*****/

/*****main関数*****/
int main(){
	/*****ファイルオープン*****/
#ifdef DEBUG
	ofstream fout("output.txt");
	ifstream fin("input.txt");
	if(!fout || !fin){
		cout << "Can't open the file.\n";
		return;
	}
#endif
	/*****変数置き場*****/
	int year;
	long int money = 100000;
	/*****処理部*****/
	cin >> year;
	for(int i=1;i<=year;i++){
		money += money*0.05;
	}
	if(money % 1000 > 0){
		money /= 10000;
		money++;
		money *= 10000;
	}
	cout << money << endl;
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <utility>

int main() {
  long n;
  long ans;

  std::cin >> n;

  ans = 100000;
  for(int i = 0; i < n; ++i) {
    ans = ans * 105 / 100;
    ans += 999;
    ans /= 1000;
    ans *= 1000;
  }

  std::cout << ans << std::endl;

  return 0;
}

C++: #include <iostream>

int main() {
	int N;
	std::cin >> N;

	double debt = 100000.0;
	for( int i=0; i<N; ++i ) {
		debt *= 1.05;
		debt = ( static_cast<int>( debt ) / 1000
			+ ((static_cast<int>( debt )%1000)>0?1:0)) * 1000;
	}

	std::cout << static_cast<int>( debt ) << std::endl;
}

C++: #include <cstdio>

#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)

int main() {
  int debt = 100000;
  int n;
  scanf("%d", &n);
  REP(i, n) {
    debt += debt * 0.05;
    if(debt%1000 != 0) {
      debt -= debt%1000;
      debt += 1000;
    }
  }
  printf("%d\n", debt);
  return 0;
}

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<round(100000*pow(1.05,n)+1000)<<std::endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	bool bo=false;
	int n,a=100000;
	while(cin>>n){
	for(int i=0;i<n;i++){
		a+=100000*0.05;
	}
	if(a%10000==0 && a%1000==0 && a%100==0 && a%10==0){
		bo=true;
	}
	a/=10000;
	if(bo==false){
		a=a+1;
	}
	cout<<a*10000<<endl;
	}
	return 0;
}

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

int main(){
int n;
scanf("%d",&n);
double base = 100000;
for(int i=0;i<n;i++){
base*=1.05;
if((int)base < 1000 && (int)base %1000 !=0) base += 1000;

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

C++: #include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <algorithm>
#include <string>
#include <set>
#include <map>
#include <queue>
#include <cstring>
using namespace std;
typedef long long int ll;
const int INF = 1000000000;
#define rep(i,n) for(int i=0;i<(int)(n);i++)

int main(){
    int n; cin >> n;
    int a = 100000;
    rep(i, n){
        int b = a / 20;
        a += b;
        //cout << a << " ";
        int k = a % 1000;
        if(k){
            a -= k;
            a += 1000;
        }
        //cout << a << endl;
    }
    cout << a << endl;
    return 0;
}

C++: #include<iostream>

using namespace std;

int main(void){
	long money = 100000;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		money *= 1.05;
		if(money / 100 % 10) money = money/1000*1000 + 1000;
	}
	cout << money << endl;
	
	return 0;
}

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

int main()
{
    int n = 0;                                          //n習慣
    int debt = 100000;                                  //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 105 / 100;                             //5%増える
        if( debt % 1000 != 0 )                     //1~999は切り上がる
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt << endl;

    return 0;
}

C++: #include <iostream>

using namespace std;

void solve()
{
	int n;
	cin >> n;
	int sum = 100000;
	for(int i = 0; i < n; ++i)
	{
		sum *= 1.05;
		int temp = sum % 1000;
		if(temp)
		{
			sum = sum - temp + 1000;
		}
	}
	cout << sum << endl;
}

int main()
{
	solve();
	return(0);
}

C++: #include <bits/stdc++.h>

const static double	de_PI	= 3.14159265358979323846;
const static int	de_MOD	= 1000000007;
const static int	de_MAX	= 999999999;
const static int	de_MIN = -999999999;

int main(void) {

	//std::ifstream in("123.txt");	std::cin.rdbuf(in.rdbuf());

	int a = 0;
	std::cin >> a;

	double n = 100000;
	for (int i = 0; i < a; i++) {
		n = n*1.05;
		n = static_cast<int>(ceil(n / 1000));
		n = n * 1000;
	}

	std::cout << n << std::endl;
}

C++: #include <iostream>

using namespace std;

typedef long long ll;

int n, base = 100000;

int main(void) {
    cin >> n;
    for(int i = 0; i < n; i++) {
        base = base + base * 0.05;
        if(base % 1000 != 0) {
            base += 1000 - (base %1000);
        }
    }
    cout << base << endl;
    return 0;
}

C++: #include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <stdio.h>
#include <algorithm>
#include <string.h>
#include <string>
using namespace std;

long int money = 100000;
int s = 100000;
int a[124],b[124];

int main(){
	int n;
	int tmp;
	cin>>n;
	//while(n!=0){
		money = 100000;
	for(int i=0;i<n;i++){
		money*=1.05;
		//if(i==n-1) cout << "\nbefore  \n" << money <<"\nafter"<<endl;
		if(i==24){
			tmp = money/100;
			//cout<<tmp<<endl;
		}
		tmp = money%1000;
		if(tmp!=0){
			money/=1000;
			money++;
			money*=1000;
			
		}
		b[i+1] = money;
		//if(i==n-1)	cout << money << endl;
	}
		//cout<<b[n]<<endl;
		
		
 
    
    //scanf("%d",&n);
 
 
    for(int i=0;i<n;i++){
        if(int(s*1.05)%1000==0){
            s=int(s*1.05);
        }else{
            s= int(s*1.05) + (1000- int(s*1.05) % 1000);
        }
    	a[i+1] = s;
    }
    //printf("%d\n",s);
	
		for(int i=0;i<n;i++)
		if(a[i+1]!=b[i+1])
			cout<<i+1<<" a = "<<a[i+1]<<" b = "<<b[i+1]<<endl;
	//cout << money << endl;
		//cin >> n;
	//}
	return 0;
}

C++: #include<iostream>

using namedspace std;

int week(int money){
	money = money + money * 0.05;
	money = money + 1000 - ( money % 1000 );
	return money;
}

int main(void){
	int n;
	int money = 100000;
	cin >> n;
	for(int i = 0;i < n;i++){
		money = week(money);
	}
	
	return 0;
}

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

int main(){

  int n, m;
  
  cin >> n;
  
  m = 100000;
  for(int i=0; i<n; i++){
    m *= 1.05;
    if(m % 1000 != 0)
      m -= (m % 1000) - 1000;
  }
  
  cout << m << endl;

  return 0;
}