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++: #include <stdio.h>
#include <string.h>

int main()
{
	int n;
	scanf("%d",&n);
	int now = 100000;
	for(int i = 0; i < n; i++)
	{
		now = now * 105 / 100;
		if(now % 1000 != 0)
		{
			now = (now / 1000 + 1) * 1000;
		}
	}
	printf("%d\n",now);
	return 0;
}

C++: #include <iostream>
#include <algorithm>
#include <vector>

using namespace std;

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

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

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

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

using namespace std;

int main()
{
	int n, ans;
	double debt = 100000;

	cin >> n;

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

	ans = debt;

	cout << ans << endl;

	return 0;
}

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

using namespace std;

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

int main() {
  long long n, m = 100000;
  cin >> n;
  rep (iii, n) {
    m = ceil((double)m * 1.05 / 1000) * 1000;
  }
  cout << m << endl;
  return 0;
}

C++: #include<iostream>

using namespace std;

double money = 100000;

int i;

int main()
{
	cin>>i;
	for(i;i>0;--i)
	{
		money *= 1.05;
		money = (long)(money/100+0.99)*100;
	}
	printf("%.0lf\n",money);
}

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);
        //Console.ReadKey();
    }
}

C++: #include <iostream>

int main(){

	int n,i,kane=100000,a,b;

	std::cin>>n;

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

		return 0;
		}

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

using namespace std;

int main()
{
    int n;
    double debt = 100.0;

    cin >> n;
    
    for (int i = 0; i < n; ++i) {
        debt = ceil(debt * 1.05);
    }
    cout << static_cast<int>(debt * 1000) << endl;

    return 0;
}

C++: #include<iostream>
#include<string>
#include<iomanip>
using namespace std;
int main(){
	int a=100000;
	int n;
	cin>>n;
	for(int i=0;i<n;i++){
		a*=1.05;
		if(a%1000==0)
			a-=1000;
		a=(a/1000)*1000;
		a+=1000;
		cout<<a<<endl;
	}
	cout<<a<<endl;
	getchar();
	getchar();
	return 0;
}

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

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

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

int main() {
	char str[100];
	cin >> str;
	for(int i=strlen(str)-1;i>=0;i--){
		cout << str[i];
	}
	cout << endl;
	return 0;
}

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

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

C++: #include<stdio.h>
int main()
{
int n,x;

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

C++: #include <iostream>

using namespace std;

int main(void){
	int n;
	int debt = 100;
	cin >> n;
	for(int i=0;i<n;i++){
		debt = ((debt*1.05)+0.9);
	}
	cout << debt*1000 << endl;
	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(){
	long double x=100000 , w ;
	int i , n , y ;
	cin >> n;
		for( i=1 ; i<=n ; i++ ){
		x = x * 1.05 ;
		y = x;
		y = y/100 ;
		x =y;
		x = x/10;
		x = ceil( x );
		x = x*1000;
	}
	cout << x << endl;
}

C++: #include<iostream>
int main(){
	int n;
	std::cin>>n;
	int s=100000;
	for(int i=0;i<n;i++){
		s*=1.05;
		if(s%1000!=0)s/=1000,s+=1;
		else s/=1000;
		s*=1000;
	}
	std::cout<<s<<std::endl;
	return 0;
}

C++: #include<iostream>

int solve( int, int );

int main( void )
{
	int n;

	std::cin >> n;

	std::cout << solve( n, 100000 ) << std::endl;

	return 0;
}

int solve( int n, int debt ){
	int tmp = (int)((( debt * 1.05 ) + 999 ) / 1000 );

	if( n == 1 ){
		return tmp * 1000;
	}

	return solve( n - 1, tmp * 1000 );
}

C++: #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <algorithm>
#include <cstdlib>
#include <ctime>
#include <stdio.h>

using namespace std;

int main()
{
	int m=100000,n;

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

	cout<<m<<endl;

	return 0;
}

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

int main(){
	int n,i,ans = 100000,a,risi[2];
	cin >> n;
	for(i = 1;n >= i;i++){
		risi[0] =  ans * 0.05;
		risi[1] = risi[0];
		while(risi[1] >= 1000){risi[1] = risi[1] - 1000;}
		ans = ans + risi[0];
	}
	cout << ans << endl;
}

C++: #include <stdio.h>
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
    int n; int sum=100000;
    cin >> n;
    while(n--)
    {
       sum*=1.05;
       if(sum%1000!=0)sum-=sum%1000,sum+=1000;
    }
    cout << sum << endl;
}

C++: #include <bits/stdc++.h>
using namespace std;
long money = 100000;
void up() {
    int judge = money % 1000;
    //cout << judge << endl;
    if(judge) {
        money -= judge; money += 1000;
    }
}

int main(void) {
    int n; cin >> n;
    for(int r = 0; r < n; r++) {
        money *= 1.05; up();
    }
    cout << money << endl;
    return(0);
}

C++: #include <stdio.h>
 
using namespace std;
 
 
int main(){
    int debt = 100000,n;
    scanf("%d",&n);
 
    for(int i=0;i<n;i++){
        debt=(debt/100)*105;
        if((debt%1000)>0){
            debt+=(1000-(debt%1000));
        }
    }
 
    printf("%d\n",debt);
 
    return 0;
}

C++: #include <iostream>

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

	return 0;
}