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++: #include<stdio.h>
int main(void)
{
	int n,s,ss,i;
	scanf("%d",&n);
	s=100000;
	for(i=0;i<n;i++){
		ss=s*0.05;
		s+=ss;
		if(s%1000!=0){	
		s=s/1000;
		s=(s+1)*1000;
		}
	}
	
	printf("%d\n",s);
	return 0;
}

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

void test();
int  interest(int debt, float interest_rate, int n);

int main(void)
{
	test();
	return 0;
}


void test()
{
	int debt,n;
	double money;
	float interest_rate;
	debt = 100000;
	interest_rate = 1.05;
	cin >> n;

	debt = interest(debt, interest_rate, n);

	money = (double) debt / 10000;// 1000?????\???????°???°?????\??????

	money = ceil(money) * 10000;// ?°???°?????\?????????????????????????????????

	debt = money;

	cout << debt << endl;
}

int interest(int debt, float interest_rate,int n)//?????°??¢??°
{

	if (n == 1)
		return debt * interest_rate;
	else
		return interest(debt, interest_rate, n - 1) * interest_rate;
}

C++: #include <iostream>

using namespace std;

int main()
{
	const double rate = 1.05;
	int n;
	
	while (cin >> n) {
		double debt = 100;	// 100kYen
		
		for (int i = 0; i < n; ++i) {
			debt = ceil(debt * rate);
		}
		
		cout << debt << "000" << endl;
	}
	
	return 0;
}

C++: #include <stdio.h>
#include <string.h>

int main(){
	int n;
	scanf("%d", &n);
	int m = 100000;
	for(int i=0;i<n;i++){
		m *= 1.05;
		if(m%1000 != 0) m = (m/1000+1)*1000;
	}
	printf("%d\n", m);
}

C++: #include <stdio.h>
#include <string>
#include <iostream>

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =10;
    
    for(int i=0; i<week; i++){
        money=money * 1.05;
    }
    printf("%d\n",int(money+0.5)*10000);
}

C++: #include <iostream>

using namespace std;
 
int main()
{
    int n; 
    int money = 100000;
    cin >> n;
    for (int i = 0; i < n; i++) {
        money *= 1.05;
        if (money % 1000 != 0) {
            money += 1000 - money % 1000;
        }
    }
    cout << money << endl;
    return 0;
}

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

int main(){
	float base = 100;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		base *= 1.05;
		base = ceil(base);
	}
	cout << (int)(base*1000) << endl;
}

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

const double BORROWING_AMOUNT = 100000;

int main () {
    int n;
    cin >> n;

    double value = BORROWING_AMOUNT;
    for (int i = 1; i <= n; ++i) {
        value += value * 0.05;
        int mod = (int) value % 1000;
        if (mod > 0) {
            value += 1000 - mod;
        }
    }
    cout << (int) value << endl;

    return 0;
}

C++: #include<iostream>
#include<stdio.h>
#include<math.h>
using namespace std;

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        ans=(int)(ans+0.999);
        ans=(double)ans;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}

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

C++: #include<iostream>
using namespace std;
int main(){
	bool bo=false;
	int n,a=100000;
	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>
#include <string>
#include <vector>
#include <queue>
#include <stack>
#include <map>
#include <algorithm>
#include <sstream>
#include <cmath>
#include <set>
#include <iomanip>
using namespace std;

#define REP(i,n) for(int (i)=0;(i)<(int)(n);(i)++)
#define REMOVE(Itr,n) (Itr).erase(remove((Itr).begin(),(Itr).end(),n),(Itr).end())
#define PB_VEC(Itr1,Itr2) (Itr1).insert((Itr1).end(),(Itr2).begin(),(Itr2).end())
#define UNIQUE(Itr) sort((Itr).begin(),(Itr).end()); (Itr).erase(unique((Itr).begin(),(Itr).end()),(Itr).end())
#define BOUND(Itr,val) lower_bound((Itr).begin(),(Itr).end(),(val))
typedef long long ll;

int main(){
    
    double i=100000;
    int n; cin>>n;
    REP(i,n){
        i=((double)((ll)(i*1.05)));
    }
    
    cout<<(ll)i;
    
    return 0;
}

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

int main()
{
    int n, debt = 100000;
    double rate = 0.05;
    
    cin >> n;
    for (int i = 0; i < n; i++) {
        debt *= (1.00 + rate);
        if ((debt % 1000) != 0){
            debt = debt / 1000 * 1000 + 1000;
        }
    }
    cout << debt << endl;
    
    return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	int n , i , w , h ;
	double x , y , z;
	cin >> n ;
	x = 100000;
	for( i=1 ; i<=n ; i++ ){
		x = x*1.05;
		w = x ;
		x = w/100;
		x = x/10;
		x = ceil( x );
		x = x*1000 ;
	}
	cout << x << endl;
}

C++: #include<bits/stdc++.h>
using namespace std;
int main(void){
	int n;
	int sum;
	int i;
	cin>>n;
	sum=100000;
	for(i=1;i<=n;i++){
		sum*=1.05;
		if(sum%1000)	sum=sum-sum%1000+1000;
	}
	cout<<sum<<endl;
	return 0;
	
}

C++: #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <vector>
using namespace std;

const double interest = 0.05;
const double roundYen = 1000.0;

int weeklyAdd(double debt) {
  debt = debt * (1 + interest);
  debt = ceil(debt / roundYen) * roundYen;
  // std::cout << debt << '\n';
  return debt;
}

int main(int argc, char const *argv[]) {
  // int week = 5;
  int week;
  std::cin >> week;
  double debt = 100000;

  for (size_t i = 0; i < week; i++) {
    debt = weeklyAdd(debt);
  }
  std::cout << debt << '\n';

  return 0;
}

C++: //"push hoge"と言われたらhogeを最後に入れ、"pop"と言われたら最後尾を取りだす。"quit"で終わり。
#include<iostream>
using namespace std;

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

	cin >> n;
	for(int i=0;i<n;i++){
		money = money * 1.05;
		if(money % 1000)
			money = money / 1000 * 1000 + 1000;
	}
	cout << money;
}

C++: #include<iostream>
int main(){int n,s=100000,i;std::cin>>n;for(i=0;i<n;i++)s*=1.05,s+=(1000-(s%1000==0?1000:s%1000));std::cout<<s<<"\n";}