Go: package main

import (
	"fmt"
	"os"
	"bufio"
	"strconv"
	"math"
)

func main() {
	scanner := bufio.NewScanner(os.Stdin)
	
	for scanner.Scan() {
		n, _ := strconv.Atoi(scanner.Text())
		debt := 100000 * math.Pow(1.05, float64(n))
		rounddebt := int(math.Ceil(debt*0.0001)) * 10000
		fmt.Println(rounddebt)
	}
}

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

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

  cout << price << endl;
  }

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

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

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

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

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

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

C++: #include <bits/stdc++.h>

using namespace std;

#define LOG(...) fprintf(stderr, __VA_ARGS__)
//#define LOG(...)
#define FOR(i, a, b) for(int i=(int)(a); i<(int)(b); ++i)
#define REP(i, n) for(int i=0; i<(int)(n); ++i)
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define EXIST(s, e) ((s).find(e)!=(s).end())
#define SORT(c) sort(ALL(c))
#define RSORT(c) sort(RALL(c))
#define SQ(n) (n) * (n)

typedef long long ll;
typedef unsigned long long ull;
typedef vector<bool> vb;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef vector<vll> vvll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;

int main() {
  int n, m = 100000;
  cin >> n;
  REP(i, n) m = ceil(m * 1.05 / 1000) * 1000;
  cout << m << endl;
}

C++: #include<iostream>

using namespace std;

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

C++: #include<iostream>
//#define DEBT 100000

using namespace std;

main(){
int inNum,i;
int debt = 100000;

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

C++: #include<iostream>
using namespace std;
int main()
{
  int week,bal=100000,i;
  cin >> week;
  for(i=0;i<week;i++)
  {
    bal = bal * 1.05;
    bal /= 1000;
    bal *= 1000;
    bal += 1000;
  }
  cout << bal << endl;
  return 0;
}

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

int main() {

    int n;
    long debt = 100;
    cin >> n;

    for(int i = 1; i <= n; i++) {
        int r = 0;
        if (debt % 20) {    r = 1;  }

        debt = debt * 1.05 + r;
    }

    cout << debt << "000" << endl;
     
    return 0;
}

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

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

C++: // Reverse Sequence
#define _USE_MATH_DEFINES
#include <cstdio>
#include <cstring>
#include <cmath>
#include <iostream>

using namespace std;

int main()
{
	unsigned int n;
	
	cin >> n;
	
	double a = 100000;
	for (int i = 0; i < n; i++)
	{
		a *= 1.05;
		a /= 1000;
		a = ceil(a);
		a *= 1000;
	}
	cout << a << endl;
	
	return 0;
}

C++: #include<map>
#include<set>
#include<list>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdio>
#include<string>
#include<vector>
#include<complex>
#include<cstdlib>
#include<cstring>
#include<climits>
#include<numeric>
#include<sstream>
#include<iostream>
#include<algorithm>
#include<functional>

using namespace std;

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

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

int main(void) {
  int n, mon = 100000;

  cin >> n;
  for(int i = 0; i < n; i++)
    mon += mon*0.05;
  cout << mon << endl;

  return 0;
}

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

int main(){

	int n, i;
	double debt = 100000;
	cin >> n;

	for( i=0;i<n;i++ ){
		debt = debt * 1.05;

		debt /= 1000;
		debt = ceil( debt );
		debt *= 1000;

	}

	cout << (int)debt << endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

int main()
{
    int a = 100000;

    int n;
    cin >> n;

    while(n--){
        a = int(a * 1.05);
        if( a % 1000 != 0)
            a  = a - (a % 1000) + 1000;
    }
    cout << a << endl;
    return 0;
}

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

int main() {
  int n; cin >> n;
  int money = 100000;
  for(int i = 0; i < n; i++) {
    int add = money * 0.05;
    if( add % 1000 ) {
      add -= add % 1000;
      add += 1000;
    }
    money += add;
  }
  cout << money << endl;
}

C++: #include <iostream>

int main()
{
	int weeks = 0;
	int amount = 100000;
	std::cin >> weeks;
	for (int i = 0; i < weeks; ++i) {
		amount = amount * 105 / 100;
		amount = (amount + 999) / 1000 * 1000;
	}
	std::cout << amount;

	return 0;
}

C++: #include <iostream>

int main(){
        int n;
        while(std::cin >> n){
                double result=100;
                while(n--){
                        result*=1.05;
                        if(result%1000!=0)result+=1000-result%1000;
                }

                result*=1000;
                std::cout << (int)result << std::endl;
        }

        return 0;
}

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

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

C++: #include <iostream>

using namespace std;

int calcDebtByWeek(int);

int main(void){
	for(int n; cin >> n; cout << calcDebtByWeek(n) << endl);

	return 0;
}

int calcDebtByWeek(int n){
	int currentDebt = (int)1e5;

	while(n --){
		currentDebt = int(currentDebt * 1.05);

		if(currentDebt % 1000) {currentDebt /= 1000; currentDebt ++; currentDebt *= 1000; }
	}	
	return currentDebt;
}

C++: #include<iostream>

using namespace std;

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

	cin >> n;

	for (int i = 0; i < n; ++i) {
		result += (result * 5) / 100;
		if (result % 1000) {
			result -= result % 1000;
			result += 1000;
		}
	}

	cout << result << endl;
	return 0;
}

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

int main() {
    int n;
    double m = 100000.;
    long long int part;
    std::cin >> n;

    for (;n--;) {
        m *= 1.05;
        m = std::floor(m);
        part = (long long int )m % 1000;
        if (part > 0) {
            m += 1000. - (double)part;
        }
    }

    std::cout << (long long int) m << std::endl;

    return 0;
}

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

int main() {
    int n;
    cin >> n;
    cout << 100000 + 5000 * (n+1) << endl;
    return 0;
}

C++: #define _USE_MATH_DEFINES
#include <iostream> 
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std; 
int main(){
	int n, r;
	int d = 100000;
	cin >> n;
	for(int i = 0; i < n; i++){
		r = d*1.05;
		if(r%1000!=0){
			while(r%1000!=0){
			r = r+1;
			}
		}
		d = r;
	}
	cout << d << endl;
	return 0;
}