Go: package main

import "fmt"

var (
	dept    int = 100000
	addDept int = dept / 100 * 5
)

func main() {
	var week int
	fmt.Scan(&week)

	nWeekDept := dept + addDept*(week+1)

	if nWeekDept/addDept%2 != 0 {
		nWeekDept += addDept
	}
	fmt.Println(nWeekDept)
}

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

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

	int m = 100000;
	for (int i = 0; i < n; i++)
	{
		m = m * (1 + 0.05);
		m = (m / 1000 + (m % 1000 == 0 ? 0 : 1)) * 1000;
	}

	cout << m << endl;
}

C++: #include <iostream>
using namespace std;
int StartDebt = 100000;

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

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

int main()
{
    int n = 0;                        
    int debt = 100000;

    cin >> n;                  

    for( int i = 0; i < n; i++ )                        
    {
        debt = debt * 105 / 100;                       
        if( debt % 1000 != 0 )                    
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt;

    return 0;
}

C++: #include<iostream>
#include<map>
#include<vector>
#include<list>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<numeric>
#include<climits>
#include<ctime>
#include<cstring>
#define REP(i,p,n) for(int i=p;i<(int)(n);i++)
#define rep(i,n) REP(i,0,n)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))
#define all(c) (c).begin(), (c).end()

using namespace std;
template<class T> inline void chmax(T& a, T b) { if(b > a) a = b; }
template<class T> inline void chmin(T& a, T b) { if(b < a) a = b; }

int main() {
	int N;
	float money = 100000;

	cin >> N;
	rep(i,N) {
		money = (money + money * 0.05);
	}
	float m = money / 10000;
	cout << (int)ceil(m) * 10000 << endl;
	
	return 0;
}

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

int main() {
    int n, a = 100000;
    cin >> n;
    for (int i = 0; i < n; i++) {
        a = static_cast<int>(ceil(a * 0.00105)) * 1000;
    }
    cout << a << endl;
    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 /= 1000;
			money++;
			money *= 1000;
		}
	}
	cout << money << endl;
	/*****処理終了後*****/
#ifdef DEBUG
	fout.close();
	fin.close();
#endif
	return 0;
}

C++: #include <iostream>
#include<math.h>
#include<iomanip>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;

int main()
{
    int  a=0,b=0,i=0;
    b=100000;
    cin >> a;
    for(i=0;i<a;i++){
        b=b*1.05;
        b=((b-1)/1000);
        cout << b << endl;
        b=b*1000+1000;

    }

    cout << b << endl;



    //cout << endl;

return 0;

}

C++: #include <iostream>
#include <sstream>
#include <string>
#include <cmath>
#include <cstdio>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <deque>
#include <algorithm>
#include <functional>
#include <numeric>

using namespace std;
typedef unsigned int uint;
typedef long long ll;
typedef unsigned long long ull;

#define REP(i,n) for(int i = 0; i < (int)(n); ++i)
#define FOR(i,a,b) for(int i = (a); i < (int)(b); ++i)
#define ALL(c) (c).begin(), (c).end()
#define SIZE(v) ((int)v.size())

#define pb push_back
#define mp make_pair

int main(void)
{
    cin.sync_with_stdio(false);
    int n;
    cin >> n;
    
    ll ret = 100000;
    while(n--) {
        ret *= 1.05;
        ret = ((ret + 999) / 1000) * 1000;
    }
    cout << ret << endl;

    return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
	int maney=100000;
	int week;
	cin >> week;
	while(week--){
		maney *= 1.05;
		if(maney%1000){
			maney -= maney%1000;
			maney += 1000;
		}
	}
	cout << maney << endl;
	return(0);
}

C++: #include<iostream>

using namespace std;

int main(){
	long n, result = 100000;

	cin >> n;

	for(int i = 0; i < n; i++) {
		cout << result << endl;
		result *= 1.05;
		if(result % 1000 != 0) {
			result += 1000;
			result -= result % 1000;
		}
	}
	
	cout << result << endl;

	return 0;
}

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

int main(){
	int n,i;
	double price = 100000;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		price += price * 0.05;
		price /= 1000;
		price = ceil(price);
		price *= 1000;
	}
	printf("%d\n",(int)price);
	return 0;
}

C++: #include <iostream>
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <string>
#include <vector>
#include <stack>
#include <queue>
#include <set>
#include <map>
#include <algorithm>
#include <functional>

using namespace std;

int gcd( int, int );

int main()
{
	unsigned int moto = 100000;
	int n;

	scanf("%d", &n );

	for ( int i = 0; i < n; i++ )
	{
		moto *= 1.05;
		if ( moto % 1000 )
		{
			moto /= 1000;
			moto *= 1000;
			moto += 1000;
		}
	}

	printf("%d", moto );

	return 0;
}

C++: #include<bits/stdc++.h>
#define loop(i, a, b) for(int i = a; i < b; i++) 
#define rep(i, a) loop(i, 0, a)
using namespace std;
const int MOD = 1000000007;
const int inf = 1e8;
using vi = vector <int>;
using vvi = vector <vi>;
using vc = vector <char>;
using vvc = vector <vc>;
using vs = vector <string>;
using vvs = vector <vs>;
//g++ -std==c++14
//setprecision(10)
int n;

int main(){
    cin >> n;
    long long va = 100000;
    rep(i, n){
        va *= 1.05;
        if(0 < va - (va / 1000 * 1000) && va - (va / 1000 * 1000) < 1000)
            va = va / 1000 * 1000 + 1000;
    }
    cout << va << endl;
}

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

int n;
double rent = 100000;

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

		}
		printf("%.0lf\n",rent);
		return 0;
	}

C++: #include <stdio.h>

using namespace std;


int main(){
	int debt = 100000;
	int n;
	scanf("%d",&n);

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

	if((debt%10000)>0){
		debt+=(10000-(debt%10000));
	}

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

    return 0;
}

C++: #include<iostream>
using namespace std;
int kiriageru(int);

int main() {
	int money = 100000;
	int n;
	cin >> n;
	
	for(int i = 0; i < n; ++i) {
		money += money / 20;
		money = kiriageru(money);
	}
	
	cout << money << endl;
}

int kiriageru(int a) {
	int ddd = a % 1000;
	return (ddd==0? (a-ddd):(a-ddd+1000));
}

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

int main()
{
  int debt=100000;
  double interest=1.05;
  int week=0;

  cin>>week;

  for(int i=0;i<week;i++){
    debt*=interest;
    if(debt%1000!=0){
      debt-=debt%1000;
      debt+=1000;
    }
  }

  cout<<debt<<endl;

  return 0;
}

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

int main(){
  int n, debt=100000;
  cin >> n;

  while(n--){
    debt = debt*105/100;
    if(debt % 1000 != 0)
      debt+=1000;
    debt /= 1000;
    debt *= 1000;
  }
  cout << debt << endl;
  return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{

	int n;
	cin >> n;

	int d = 100000;

	for (int i = 0; i < n; ++i)
	{
		d = static_cast <int> (static_cast <double> (d) * 1.05);
		if (d % 1000 > 0)
		{
			d = d - (d % 1000) + 1000;
		}
	}

	cout << d << endl;

	return 0;
}