Go: package main
import (
	"fmt"
	"os"
	"strconv"
	"bufio"
	"math"
)

var sc = bufio.NewScanner(os.Stdin)

func main(){
	sc.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(int(ans))	// intにしないと指数つき表現になってしまう
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		tmp = Ceil(tmp, -3)
	}
	return tmp
}

func Ceil(f float64, places int) float64{
	shift := math.Pow(10, float64(places))
	return math.Ceil(f * shift)/shift
}

func next()string{
	sc.Scan()
	return sc.Text()
}

func nextInt()int{
	a, _ := strconv.Atoi(next())
	return a
}

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

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

	cin >> n;

	for ( int i = 0; i < n; ++i ){
		money *= 1.05;
		if ( money % 1000 ){
			money = ( money / 1000 + 1 ) * 1000;
		}
	}

	cout << money << endl;

	return 0;
}

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

using namespace std;

int main() {

	int N, i, sum=100000;

	cin >> N;

	for (i = 0; i < N; i++) {
		sum *= 1.05;
		if(sum -(sum/1000)*1000 != 0)
			sum = ((sum + 1000) / 1000) * 1000;
	}

	cout << sum << endl;

	return 0;

}

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

int main()
{
    int a;
    int debt=100000;
    cin >> a;
    for (int i=0; i<a; i++)
    {
	debt+=debt/20;
	debt=(debt+999)/1000*1000;
    }
    cout << debt << 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){
            money += 1000 - (money % 1000);
        }
    }
    cout << money << endl;
}

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

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

C++: #include <cstdio>

using namespace std;
 
int main() {
	int n;
	long base = 100000;
	float interest = 0.05f;
	long roundNum;

	scanf("%d", &n);
	
	while (n--) {
	    base = base * (1 + interest);
	    roundNum = base % 1000;
	    base += (1000 - roundNum);
	}
	
	printf("%ld\n", base);
	
	return 0;
}

C++: #include<iostream>
#include<iomanip>
#include<cstdio>
#include<vector>
#include<algorithm>
#include<cmath>
#include<queue>
#include<stack>
#include<functional>
#include<string>
#include<cstring>
#include <sstream>
using namespace std;
int main(void){
    int n,i,ans,r_up;
    cin >> n;
    ans = 100000;
    for(i = 0; i < n; i++){
        ans += ans * 0.05;
        r_up = ans % 1000;
        if(r_up != 0){
            ans += (1000 - r_up);
        }
    }
    cout << ans << endl;
    return 0;
}

C++: #include <iostream>

using namespace std;

int main(int argc, char *argv[]) {
  int n;
  double debt = 100000;

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

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

C++: #include<iostream>

using namespace std;

int main(){
	int n;
	cin>>n;
	int ans=100000;
	for(int i=0;i<n;i++)ans+=ans*5/100;
	
	if(ans%10000)ans+=(10000-ans%10000);
	cout<<ans<<endl;
}

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

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

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

int main(){
	int debt = 100000;
	int n;
	cin >> n;
	for(int i = 1;i<=n;i++){
		debt = debt *105 / 100;
		if( debt %1000 != 0 && debt % 1000 <999)
			debt = debt / 1000 *1000 +1000;
		else
			debt = debt / 1000 *1000;
	}
	cout << debt << endl;
	
	return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	int lend=100000;
	for(int i=1;i<=n;i++){
		lend=(lend*1.05-1)/1000;
		lend=(lend+1)*1000;
	}
	cout<<lend;
}

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

C++: #include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
using namespace std;

#define FOR(i,a,b) for(long long int i=(a);i<(b);i++)
#define REP(i,n) for(long long int i=0;i<(n);i++)
#define ALL(s) (s).begin(),(s).end()

#define PI 3.14159265358479

typedef long long int ll;
typedef vector<long long int> vi;

int main(){
	ll n,m=100000;
	cin >> n;
	REP(i, n){
		m *= 1.05;
		if (m % 1000 != 0){
			m -= m % 1000;
			m += 1000;
		}
		cout << m;
	}
	cout << m << "\n";
}

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

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

}

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

double cutup(double x) {
  if (x - (double)((int)x / 1000) * 1000 > 0) {
    x = (double)((((int)x / 1000) + 1) * 1000);
  }
  return x;
}

double money(double x, int target, int depth = 0) {
  if (target == depth) { return x; }
  return money(cutup(x * 1.05), target, depth + 1);
}

int main() {
  std::cin.tie(0);
  std::ios::sync_with_stdio(false);

  int n, x;
  cin >> n;

  printf("%.0f\n", money(100000., n));

  return 0;
}

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

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

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

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

using namespace std;

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

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

    return 0;
}

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 << std::endl;

	return 0;
}

C++: #include <iostream>
#include <math.h>
using namespace std;
int main(void){
   int a;
   float b = 100000.0f;
   std::cin >> a;
   for(int i = 0; i < a; i++){
       b *= 1.05f;
       b /= 1000;
       double c = ceil(b);
       b = c * 1000;
   }
   std::cout << b << std::endl;
}

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

int main()
{
	int n;
	double debt;
	while (std::cin >> n)
	{
		debt = 100000;
		for (int i = 0; i < n; ++i)
		{
			debt += debt / 20;
			debt /= 1000;
			debt = std::ceil(debt);
			debt *= 1000;
		}
		std::cout << static_cast<long>(debt) << std::endl;
	}
	return 0;
}

C++: #include <iostream>
#include <cmath>
using namespace std;
int main() {
  int n;
  cin >> n;
  long c = 100000;
  for (int i = n; i > 0; i--) {
    c = ceil(c * 1.05 / 1000) * 1000;
  }
  cout << c << endl;
}

C++: #include <iostream>

int main(){
	int n,debt=100000;
	std::cin>>n;
	for(int i=0;i<n;i++) debt*=1.05;
	std::cout<<(debt%1000 ? debt/1000*1000+1000 : debt)<<'\n';
	return 0;
}

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