Go: package main

import "fmt"

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

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

	if week != 0 {
		nWeekDept = dept + addDept*(week+1)
	}

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

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

C++: #include <iostream>
#include<string>
#include<math.h>
#include<stdio.h>
#include <algorithm>
using namespace std;
int main(void){
    // Here your code !

int n;
int m=100000;
cin>>n;
for(;n--;){
if(int(m*1.05)%1000==0) m=int(m*1.05);
else m=int(m*1.05)+(1000-int(m*1.05)%1000); 
}

cout<<m;
return 0;
}

C++: #include <iostream>
#include <cmath>
/*
100
105
111
117
123
130
*/
int main()
{
    int Debt = 100000;
    int Round = 1000;
    Debt /= Round;
    int week;
    std::cin >> week;
    for(int i = 0; i < week; ++i){
        Debt = std::ceil(Debt*1.05);
    }
    Debt *= Round;
    std::cout << Debt << std::endl;
    return 0;
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

#define REPS(i, a, n) for (int i = (a); i < (n); ++i)
#define REP(i, n) REPS(i, 0, n)
#define RREP(i, n) REPS(i, 1, n + 1)
#define DEPS(i, a, n) for (int i = (a); i >= n; --i)
#define DEP(i, n) DEPS(i, n, 0)

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main(){
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;

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

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

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

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

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

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

void test()
{
	long long debt;
	int n;
	debt = 100000;
	cin >> n;

	debt = interest(debt, 1.05, n) ;
	
	cout << debt << endl;
}

int interest(int debt, double interest_rate,int n)
{

	if (n == 1)
	{	
		int intedebt = debt*interest_rate;
		if((intedebt%1000) != 0)
			return intedebt - intedebt%1000 + 1000;
		else
		{
			return intedebt;
		}
	}
	else
	{
		int func_intedebt = interest(debt, interest_rate, n - 1) * interest_rate;
		if ((func_intedebt % 1000) != 0)
			return func_intedebt - func_intedebt % 1000 + 1000;
		else
			return func_intedebt;
	}
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
//ranker
using namespace std;

using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vvvi = vector<vvi>;
using pii = pair<int, int>;
using pis = pair<int, string>;
using psi = pair<string, int>;
using D = double;


int main(){
  int n, sum=100000;
  int i, j, k;
  int tot, ans, num;

  cin >> n;
  for(i=0; i<n; i++){
    sum += sum*(i+1)*0.05;
    sum = (sum/1000+1)*1000;
  }
  cout << sum << endl;
  return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;
  
  cin >> n;
  for (int i = 0; i < n; i++) {
    debt *= 1.05;
    debt = (int)(debt / 1000 + 0.9) * 1000;
  }
  cout << (int)debt << endl;
  return 0;
}

C++: #include <iostream>

#define DEFAULT_DEBT 1e5

using namespace std;

int calculate(int);

int main(void){
	int n; cin >> n;
	cout << calculate(n) << endl;

	return 0;
}

int calculate(int week){
	double debt = DEFAULT_DEBT;

	while(week --){
		debt *= 1.05;
		debt = ((debt / 1e3 > (int)(debt / 1e3)) ? 1e3:0) + (int)(debt / 1e3) * 1e3;
	}
	return (int)debt;
}

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

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

using namespace std;

#define REP(i, n) for(int i = 0; i < n; i++)

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

C++: #include<iostream>
 
int main(){
int n,a,i,b;
std::cin>>n;
 for(i=0,a=100000;i<n;++i){
      a=a+a/20;
        if(a%1000!=0){
        b=a%1000;
        a=a+1000-b;
        }
          }
        std::cout<<a<<std::endl;
        return 0;
        }

C++: //============================================================================
// Name        : 0007.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int n;
	cin>>n;
	int x=100000;
	for(int i=0; i<n; i++){
		x=0.05*x+x;
		x=ceil((double)x/1000)*1000;
	}
	cout <<x<<endl;

	return 0;
}

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

cin>>inNum;
for(i = 0; i <= inNum; i++){
debt*=1.05;
}
debt/=10000;
debt*=10000;
cout<<debt<<endl;
}

C++: #include <stdio.h>

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

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

  return 0;
}

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

int main() {
	int loan = 100000;
	int hoge = loan * 0.05;
	int n;
	std::cin >> n;

	for (int i = 0; i < n; i++)
		loan += hoge;
	
	if (loan % 10000 < 5000)
		loan = loan / 10000 * 1000;
	else
		loan = loan / 10000 * 10000 + 10000;
	
	std::cout << loan << std::endl;
}

C++: using System;
class main
{
    static void Main(String[] args)
    {
        double n = double.Parse(Console.ReadLine());
        double b = 100000;
        for (int i = 0; i < n; i++)
        {
            b = b * 1.05;
            b = (Math.Ceiling(b / 1000))*1000;
        }
        Console.WriteLine(b);
    }
}