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 <iostream>
#include <vector>
#include <cstdio>
#include <algorithm>
using namespace std;

int main(){
	int n;
	cin >> n;
	int s = 100000;
	for(int i = 0 ; i < n ; i++)
		s = (s*105/100+999)/1000*1000;
	cout << s << endl;
}

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

using namespace std;
            
int main(){

    int syakkin = 100000;
    int syu;
    double d;
    cin >> syu;
    
    for(int i = 0; i < syu; ++i){
        syakkin = (syakkin + ((syakkin / 100) * 5));
        syakkin = ceil(syakkin / 1000.0) * 1000;
    }

    cout << syakkin << endl;
    
	return 0;
}

C++: #include <iostream>
using namespace std;
int main()
{
    int n;
    int m=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        m*=1.05;
        if(m%1000!=0){
        int a;
        a=m%1000;
        m+=1000-a;
    }


    }

    cout<<m<<endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

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


	return 0;
}

C++: #include<iostream>

using namespace std;

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

C++: #include <cstdio>
#include <cstring>

int main(){
    int x, a;
    while(scanf("%d", &a) != EOF){
        x = 100000;
        for(;a > 0;a--){
            x *= 1.05;
            if(x % 1000)
                x = (x / 1000 + 1) * 1000;
}
        printf("%d\n", x);

    }
    return 0;
}

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

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

int main() {
    int n;
    scanf("%d", &n);
    
    long long int r = 100000;
    for (int i = 0; i < n; ++i) {
        r += r * 0.05;
        int s = r % 1000 ? 1000 : 0; 
        r = r / 1000 * 1000;
        r += s;
    }
    printf("%lld\n", r);
}

C++: #include<iostream>
using namespace std;
int main(){
	int a,b,rone=100000;
	cin>>a;
	for(int i=0;i<a;i++){
		rone *=1.05;
		b = rone % 1000;
		rone -= b;
		if(b>0)	rone += 1000;		
	}
	cout<<rone<<endl;
}

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

int
main(void)
{
	char line[80];
	int n;
	long s = 100000;
	
	if (fgets(line, sizeof line, stdin)) {
		if (sscanf(line, "%d", &n) == 1) {
			for (int i = 0; i < n; i++) {
				s = s * 1.05;
				s = ceil(s / 1000.0) * 1000;
			}

			printf("%ld\n", s);
		}
	}

	return 0;
}

C++: #include <cstdio>
#include <cstdlib>
  
int main(){
 int n;
 scanf("%d",&n);
   
 int ans = 100000;
 for(int i = 0;i < n;i++){
  ans += (double)ans * 0.05;
  if(ans % 1000 > 0) ans = ans - (ans % 1000) + 1000;
 }
 printf("%d\n",ans);
 return 0;
}

C++: #include <iostream>
const int first = 100000;

int get_dept(int n) // n週間後(切り上げ前)
{
    int dept = first;
    for (int i=0; i<n; i++) {
        dept *= 1.05;
    }
    return dept;
}
int round_up(int price) // 1000円未満を切り上げ
{
    if (price <= 10000) {
        return price;
    }
    int complement  = 10000 - price%10000; // 補数
    return (price + complement);
}
int main()
{
    int n;
    std::cin  >> n;
    std::cout << (round_up(get_dept(n))) << std::endl;
}

C++: #include <iostream>

using namespace std;

int main() {

	int n, debt=100000;

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

	return 0;

}

C++: #include <iostream>
#include <cmath>
#include <cstdio>
#define DEFAULT 100000
#define EPS 1e-10
using namespace std;

typedef long long ll;

double ceiler(double start) {
    //cout << start << endl;
    start /= 1000;
   // start += EPS;
    //cout << "start:" << start << endl;
    start = ceil(start);
    start *= 1000;
    return(start);
}

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

int main(void) {
    double start = DEFAULT;
    int num; cin >> num;
    for(int r = 0; r < num; r++) {
        start *= 1.05;
        start = ceiler(start);
        //cout << start << endl;
    }
    printf("%d\n", (int)start);
    return(0);
}

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

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

C++: #include<stdio.h>
int main(void)
{
	int n,s,ss,i;
	scanf("%d",&n);
	s=100000;
	for(i=0;i<n;i++){
		ss=s*0.05;
		s+=ss;
		if(s%1000!=0){	
		s=s/1000;
		s=(s+1)*1000;
		}
	}
	
	printf("%d\n",s);
	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 / 10000;// 1000?????\???????°???°?????\??????

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

	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>

using namespace std;

int main()
{
	const double rate = 1.05;
	int n;
	
	while (cin >> n) {
		double debt = 100;	// 100kYen
		
		for (int i = 0; i < n; ++i) {
			debt = ceil(debt * rate);
		}
		
		cout << debt << "000" << endl;
	}
	
	return 0;
}

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

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

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

using namespace std;


int main(){
    int week;
    cin >> week;
    double money =10;
    
    for(int i=0; i<week; i++){
        money=money * 1.05;
    }
    printf("%d\n",int(money+0.5)*10000);
}

C++: #include <iostream>

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

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

int main(){
	float base = 100;
	int n;
	cin >> n;
	for(int i = 0; i < n; i++){
		base *= 1.05;
		base = ceil(base);
	}
	cout << (int)(base*1000) << endl;
}

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

const double BORROWING_AMOUNT = 100000;

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

    double value = BORROWING_AMOUNT;
    for (int i = 1; i <= n; ++i) {
        value += value * 0.05;
        int mod = (int) value % 1000;
        if (mod > 0) {
            value += 1000 - mod;
        }
    }
    cout << (int) value << endl;

    return 0;
}

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

int main(void){
    int i,n;
    double ans;
    cin >> n;
    ans=100.000;
    for(i=0;i<n;i++){
        ans*=1.05;
        ans=(int)(ans+0.999);
        ans=(double)ans;
    }
    ans*=1000;
    printf("%d\n",(int)ans);
    return 0;
}