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

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

C++: 
//http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

using namespace std;

//テ」ツδ榲」ツつッテ」ツδュテ・ツョツ堙ァツセツゥ
#define ALL(v) (v).begin(),(v).end()
#define ARRAY_LENGTH(array) (sizeof(array) / sizeof(array[0]))
#define REP(i,a,b) for(int i=(int)(a); i<(int)(b); ++i)
#define rep(i,n) for(int i=0;i<(int)(n);++i)
#define SORT(x) sort(begin(x),end(x))
#define SELECT_SORT(x, n) sort(begin(x),begin(x)+n)
#define SWAP(type, a, b) do {type tmp = a; a = b; b = tmp;} while (0)
#define rep_split(tok,a_str,re) for(char *tok = strtok((char *)a_str.c_str(),re); tok != NULL; tok = strtok(NULL,re))

//テ・ツョツ堙ヲツ閉ー
#define INF 2000000000000
#define MAX 10

//DEBUGテァツ板ィ
#define BAR() cout << "----------------------------" << endl;
#define DUMP(v) (cerr << #v << ": " << v << endl)
#define PRINT(list) cout << "{ "; for(auto nth : list){ cout << nth << " "; } cout << "}" << endl;


int yami_kin(int money)
{
	int risoku = money*0.05;
	money = money + risoku;
	
	if(money % 1000 == 0){
		return money;
	}else{
		return (money - (money%1000)) + 1000;
	}
}

int main()
{
	int money= 100000; //10テ、ツクツ?・ツ??
	int n=0;
	cin >> n;
	for(int i=0; i<n; i++){
		money = yami_kin(money);
		//cout << money << endl;
	}
	cout << money << endl;
	
}

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;
}