Go: package main

import "fmt"

func roundUp1000(dept float64) float64 { 
	iDept := int(dept)
	if iDept-(iDept/1000*1000) != 0 { 
		iDept = ((iDept / 1000) + 1) * 1000 
	}
	return float64(iDept)
}

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

	dept := 100000.0
	for i := 0; i < week; i++ {

		dept *= 1.05
		dept = roundUp1000(dept)
	}

	fmt.Println(int(dept))
}

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning(disable:4996)

int main()
{

	int Debt = 100000;
	int Weeks = 0;
	scanf("%d", &Weeks);

	for (int nCnt = 0; nCnt < Weeks; nCnt++)
	{
		Debt += Debt * 0.05f;
		if (Debt % 1000 > 0)
			Debt += 1000 - (Debt % 1000);
	}

	printf("%d", Debt);

	return 0;
}

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

main(void){
    int money = 100000, num;
    
    scanf("%d", &num);
    
    for( ; num >= 0; num--){
        money += money * 0.05;
    }
    
    printf("%d\n", money);

    return 0;
}

C++: #include <iostream>
#include <cstdio>
using namespace std;
typedef long long l;
int main(void) {
    int n; cin >> n;
    l now = 100000;
    for(int r = 0; r < n; r++) {
        now += now / 20; //5/100を掛けるので
        //もし1000円未満が0でなければ、繰り上げを行う。
        if(now % 1000 != 0) now = now - (now % 1000) + 1000;
    }
    cout << now << endl;
    return(0);
}

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

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

C++: #include <iostream>

using namespace std;

int main(){

	int n;
	cin >> n;
	int debt = 100000;
	for(int i = 0; i < n; i++){
		debt += debt/20;
	}
	int lower = debt % 10000;
	debt -= lower;
	if(lower >= 5000)
		debt += 10000;

	cout << debt << endl;

	return 0;
}

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

using namespace std;

int main(){
        char str [21];

        cin >> str;

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

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