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>
# include <stdio.h>
# include <math.h>
using namespace std; 
 
int main()
{   int n; cin>>n; float newamount=100000;  

	for(int i=0;i<n;i++){
    float copy=newamount*21/20;
     copy=ceil(copy/1000);
     copy=copy*1000;
     newamount=copy;
	}
	cout<<ceil(newamount);
    return 0;
}

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

int main()
{
	int money = 100000;
	int n;
	cin >> n;
	while (n--)
	{
		money += 5000;
	}
	if (money % 10000 != 0)
	{
		money -= (money % 10000);
		money += 10000;
	}
	cout << money << endl;

	return 0;
}

C++: #include<iostream>

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

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

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

	for (i = 0; i < n; i++) {
		result += result*0.05;
		if(result - (result/1000*1000) > 0){
			result = result/1000*1000+1000;
		}
	}
	
	cout << result << endl;

	return 0;
}

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

int main(){
	int n = 0;
	int m = 100000;
	
	scanf("%d", &n);
	
	for( ; n != 0; n--){
		m = (int)(m * 0.00105) * 1000;
		m += 1000;
	}
	printf("%d\n", m);
	
	return 0;
}

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

using namespace std;

signed main(){
    int n;
    double ret = 100000;
    scanf( "%d", &n );
    while( n > 0 ){
        ret *= 1.05;
        ret = ceil( ret / 1000 ) * 1000;
        n--;
    }
    printf( "%.1f\n", ret  );
    return 0;    
}

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

int main(){
    int debt = 100;
    int n;
    int i;
    scanf("%d",&n);
    for(i=0;i<n;i++){
        debt = (int)ceil(debt*1.05);
    }
    printf("%d\n",debt*100);
}

C++: #include <stdio.h>

int main(){
    int money = 100000;
    int n;
    scanf( "%d",&n );
    for( int i = 0;i < n;i++ ){
       
        money = ( float )money * 1.05;
        if( money % 1000 > 0 ) money += 1000-( money%1000 );
    }
    printf( "%d\n",money );
    return 0;
}

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

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\n", result);
	return 0;
}

C++: #include<iostream>

using namespace std;


int search(int lim,int money)
{
	money=money*1.05;
	
	if(money%1000>0)
	{
		money/=1000;
		money*=1000;
		money+=1000;
//		cout << "in " << money << endl;
	}
	if(lim==1)
		return money;
	
	
	search(lim-1,money);
}

int main()
{
	int n;
	
	cin >> n ;
	
	int ans = search(n,100000);
	
	cout << ans << endl;
}

C++: #include<stdio.h>
int main(void)
{
    int n,i;
	scanf("%d",&n);
	
	n=n*5;
	n=1000*n;
	n=100000+n;
	i=n%10000;
	if(i!=0){
	    i=10000-i;
	    n=n+i;
	}
	printf("%d\n",n);
	return 0;
}

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

int main() {
	// your code goes here
	int n,ans;
	ans = 100000;
	cin >> n;
	for (int i=0;i<n;i++) {
		ans = ans * 1.05;
		if (ans%1000!=0)ans=ans + ans%1000
	}
	cout << ans;
	return 0;
}

C++: #include<iostream>
#include <fstream>
#include <stdio.h>
#include <stdlib.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include<string>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<sstream>
#include<algorithm>
#include<map>
#include<complex>
using namespace std;


#define li			long long int
#define rep(i,to)	for(int i=0;i<((int)(to));i++)
#define repp(i,start,to)	for(int i=(int)(start);i<((int)(to));i++)
#define pb			push_back
#define sz(v)		((li)(v).size())
#define bgn(v)		((v).begin())
#define eend(v)		((v).end())
#define allof(v)	(v).begin(), (v).end()
#define dodp(v,n)		memset(v,(li)n,sizeof(v))
#define bit(n)		(1ll<<(li)(n))
#define mp(a,b)		make_pair(a,b)
#define rin	rep(i,n)
#define EPS 1e-10
#define ETOL 1e-8
#define MOD 1000000007
#define p2(a,b)		cout<<a<<"\t"<<b<<endl
#define p3(a,b,c)		cout<<a<<"\t"<<b<<"\t"<<c<<endl


int main(){
	li n;
	cin>>n;
	
	li res=100;
	rin{
		double tres=(double)res*1.05;
		if(tres-(int)tres==0)res=(int)tres;
		else res=(int)tres+1;
	}
	
	cout<<res*1000<<endl;
	
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int n;
    int money = 100000; 

    cin >> n;
    while(n-- > 0){
        money *= 1.05;
        
        if(money % 1000 == 0) money += 0;
        if(money % 1000 != 0) money += (1000 - money % 1000);        
    }
    cout << money << endl;
}

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

int main(){
	long long int n,i,out;
	long double price = 100000;
	cin >> n;
	for(i=0;i<n;i++){
		price = price * 1.05;
	}
	price = ceil(price/10000);
	out = (int)price*10000;
	cout << out;
	return 0;
}

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

int main() {
  int n, d = 100000;
  cin >> n;
  while (n--) {
    d = (int)ceil(d * 1.05 / 1000) * 1000;
  }
  cout << d << endl;
  return 0;
}

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

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

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

int main(){
    int n;
    long double cath=100000;

    cin>>n;

    for(int i=1;i<=n;i++){
        cath+=cath*0.05;
        cath=ceil(cath*0.001);
        cath*=1000;
    }
    cout<<cath<<endl;

    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 << endl;return 0;}

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

using namespace std;

int main()
{
	int n;
	double money=100;
	cin >> n;
	for (size_t i = 0; i < n; i++)
	{
		money = money*1.05;
		money = ceil(money);
	}
	cout << money * 1000;
	return 0;
}

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

using namespace std;


int main(){
	int mon = 100000;
	int r = 5;
	int n;
	cin >> n;

	for (int i=0 ; i< n ; i++){
		mon += mon * r / 100;
		if((mon-1)/1000 == mon/1000){
			mon = mon/1000;
			mon++;
			mon = mon * 1000;
		}
	}

	cout << mon << endl;
	return 0;
}

C++: #include<iostream>


using namespace std;

int main(){
	int money = 100000;
	int N;
	cin >> N;
	
	for(int i=0;i<N;i++){
		money *= 1.05;
		if(money%1000 == 0) continue;
		
		money = (((int)money/1000)+1)*1000;
	}
	cout << money << endl;
	
	return 0;
}

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

int main(){
	int n;
	int a = 100000;

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

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

C++: #include <iostream>

using namespace std;

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

    int debt = 100'000;

    while (n != 0) {
        debt *= 1.05;
        if (debt % 1000 != 0) {
            debt = (debt / 1000 + 1) * 1000;
        }
        --n;
    }

    cout << debt << endl;
}