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.Println(nWeekDept)
}

C++: #include<iostream>

using namespace std;

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

    int d = 100000;
    int r = 0;

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

    cout << d << endl;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i)
    sum=sum+sum*0.05;

  if(sum%10000!=0){
    sum=sum/10000;
    sum=sum+1;
    sum=sum*10000;
  }

  cout<<sum<<endl;

}

C++: #include <iostream>
using namespace std;
int main(void){
	int a,b=100000,c,d,e=1000;
	cin>>a;
	for (int A=0;A<a;A++){
		c=b*1.05;
		d=c%1000;
		if (d!=0){
			e-=d;
			c+=e;
			b=c;
			e=1000;
		}
		b=c;
	}
	cout<<c<<endl;
	return 0;
}

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

using namespace std;

int calcDebt(int debt){
	double tmp = debt * 1.05;
	int result = (int) ceil(tmp);
	if(result % 1000 == 0){
		return result;
	}else{
		return (result / 1000 + 1) * 1000;
	}
}

int main() {
	int result = 100000;
	int n;
	scanf("%d", &n);
	for(int i=0; i<n; i++){
		result = calcDebt(result);
	}
	printf("%d", result);
	return 0;
}

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

using namespace std;

int roundUp(int x, int index);

int main(void)
{
    int i;
    int n;
    double intrst;
    int debt;
    
    cin >> n;
    
    debt = 100000;
    intrst = 0.05;
    for (i = 0; i < n; i++) {
        debt *= 1.0 + intrst;
        debt = roundUp(debt, 4);
    }
    
    cout << debt << endl;
    
    return 0;
}

int roundUp(int x, int index)
{
    int exp10;
    
    exp10 = pow(10, index - 1);
    if(x % exp10 != 0){
        x += exp10 - (x % exp10);
    }
    
    return x;
}

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 <iostream>
#include <string>
using namespace std;
int main() {
double n=100000;
int i,b;
cin>>b;
for(i=0;i<5;i++){
n*=1.05;
n=(int)(n+999)/1000*1000;
}

cout<<n<<endl;
  return 0;
}

C++: #include <iostream>
#include <string>
#include <algorithm>
#include <queue>
#include <map>
#include <set>
#include <vector>
#include <cmath>
#include <cctype>
using namespace std;

int main(){
  int n,ans=100000;
  cin>>n;
  for(int i=0;i<n;i++){
    ans*=1.05;
    ans=(ans+999)/1000*1000;
  }
  cout<<ans<<endl;
}

C++: #include<iostream>
#include<stdio.h>
int main(){
	
	int n,i,a,b,okane=100000;

    std::cin>>n;
	for(i=0;i<n;i++){	
		okane=okane*1.05;
		if(okane%1000!=0){
			a=okane%1000;
			b=1000-a;
			okane=okane+b;
			
			
			
			
			}

		}
    std::cout<<okane;

	system("pause");
	
	
	
	
	

	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int n;
    int s=100000;
    cin>>n;
    for(int f=1;f<=n;f++)
    {
        s=s*1.05;
        if(s%1000!=0)
        {
            int u =s%1000;
            u=1000-u;
            s+=u;
        }
    }
    cout<<s<<endl;
    return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <iomanip>
#include <cmath>
#include <string>

int main(){
    std::ios::sync_with_stdio(false);
    std::cin.tie(0);

    int n;
    std::cin >> n;
    double loan = 100000;
    for(int i=0; i<n; ++i){
        loan *= 1.05;
        loan = std::ceil(loan/1000)*1000;
    }
    std::cout << loan << "\n";
    return 0;
}

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#define DEFAULT 100000
using namespace std;

int ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
    //cout << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

void check(int num) {
    cout << ceiler(num) << endl;
}

int main(void) {
    double tax = 0.05 * DEFAULT;
    double start = DEFAULT;
    int num;
    cin >> num;
    for(int r = 0; r <= num; r++) {
        start += tax;
    }
    //check(1000);
    start = ceiler(start);
    cout << (int)start << endl;
    
    return(0);
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int lend=100000;
	for(int i=1;i<=n;i++){
		lend=(lend*1.05-1)/1000;
		lend=(lend+1)*1000;
	}
	cout<<lend;
}

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

#define DEBIT 100000

int main(){
	int debit = DEBIT, y;
	cin >> y;
	for(int i = 0; i < y; i++){
		debit *= 1.05;
		if(debit % 1000 > 0){
			debit = (debit / 1000 + 1) * 1000;
		}
	}
	cout << debit << endl;
	return 0;
}

C++: #include<iostream>
using namespace std;
#define L long long int
int main(){
int n,ans=100000;
cin>>n;
while(n--){
	ans*=1.05;
	ans+=ans%1000==0 ? -ans%1000:1000-ans%1000;

}
cout<<ans<<endl;
return 0;
}

C++: #include<bits/stdc++.h>
using namespace std;

int main(){

  int n;
  int sum=100000;

  cin>>n;

  for(int i=0;i<n;++i){
    sum=sum+sum*0.05;

    if(sum%1000!=0){
      sum=sum/1000;
      sum=sum+1;
      sum=sum*1000;
    }
  }
  cout<<sum<<endl;

}

C++: #include<iostream>
#include<math.h>
int main(){
	int n;
	double Debt=100000;
	std::cin >> n;
	for (int i = 0; i < n; i++){
		Debt = Debt*1.05 / 1000;
		Debt = ceil(Debt);
		Debt = Debt * 1000;
	}
	std::cout << Debt<< std::endl;
}

C++: #include<iostream>
using namespace std;
int ans=1000;
int main()
{
    int n;
    while(cin>>n)
    {
        for(int i=0;i<n;i++)
        {
            ans*=1.05;
        }
        cout<<ans*1000<<endl;
    }
    return 0;
}

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

int main() {
	int n;
	double d = 100000;
	cin >> n;
	for (int i = 0; i < n; i++) {
		d *=  1.05 / 1000;
		if (d - floor(d) > 0.00001) {
			d = ceil(d) * 1000;
		}else d *= 1000;
	}
	cout << (int)d <<endl;
		
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
    int n,m;
    m=100000;
    cin>>n;
    for(int i=0;i<n;i++)
    {
        m=m*21;
        if(m%20000==0)m=m/20;
        else
        {
            m=m/20000;
            m=m*1000+1000;
        }
    }
    cout<<m<<endl;
    return 0;
}

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

double cutup(double x) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  return x;
}

double money(double x, int target, int depth = 0) {
  if (target == depth) { return x; }
  return money(cutup(x * 1.05), target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  cout << money(100000., n) << endl;

  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 / 1000;		// 1000?????????????°???°?????\??????

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

	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>
#include <cstdio>
#include <cmath>
using namespace std;

int main() {
    int n;
    cin >> n;
    double Kdebt = 100;
    for (int i = 0; i < n; i++) {
        Kdebt = ceil(Kdebt * 1.05);
    }
    printf("%d\n", (int)Kdebt * 1000);
}