Go: package main

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

var scanner = bufio.NewScanner(os.Stdin)

func nextInt() int {
	scanner.Scan()
	i, e := strconv.Atoi(scanner.Text())
	if e != nil {
		panic(e)
	}
	return i
}

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 main() {
	scanner.Split(bufio.ScanWords)
	n := nextInt()
	ans := calc(n)
	fmt.Println(int(ans))
}

C++: #define _USE_MATH_DEFINES

#include <iostream>
#include <string>
#include <iomanip>
#include <cmath>
#include <algorithm>
#include <utility>
#include <vector>
#include <numeric>

using namespace std;

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

	int m = 100000;
	for (int i = 0; i < n; i++)
	{
		m += (int)(0.05 * m);
		m = (m / 1000 + (m%1000 == 0 ? 0 : 1)) * 1000;
	}

	cout << m << endl;
}

C++: #include<iostream>
#include<cmath>
#include<cstdio>
using namespace std;
int main(){
  int n;
  cin>>n;
  double m = 100000;
  for(int i = 0; i < n; i++){
    m*=1.05;
    m/=1000;
    m=ceil(m);
    m*=1000;
   // cout<<i<<','<<m<<endl;
	printf("%.0lf\n",m);  
}
  cout<<m<<endl;
}

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 <stdio.h>

int main(void)
{
	int n,m;
	
	m=100000;
	scanf("%d",&n);
	
	while(n>0)
	{
		m=(m*105)/100;
		if(m%1000>0)
		{
			m=((m/1000)+1)*1000;
		}
		n--;
	}
	
	printf("%d\n",m);
	return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
    int a=100000,b=0,t;
    cin>>t;
      for(int k=0;k<t;k++){
         b=a*1.05;
         b=(b+999)/1000*1000;
         a=b;
       }
     cout<<a<<endl;
}

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

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

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

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

C++: #pragma GCC optimize("Ofast,unroll-loops")
#include<bits/stdc++.h>

using namespace std;
using Int = long long;
typedef pair<int,int> Pi; typedef pair<Int,Int> Pl;
constexpr int mod = 1e9+7;
constexpr int INF32 = numeric_limits<int>::max();
constexpr Int INF64 = numeric_limits<Int>::max();
#define END {cout<<ans<<'\n'; return 0;}
#define ALL(v) (v).begin(),(v).end()
#define fi first
#define se second
#define mp make_pair
#define eb emplace_back
#define Pr(t) priority_queue<t>
#define gPr(t) priority_queue<t,vector<t>,greater<t>>
#define V(t) vector<t>
#define rer(i,l,r) for(int(i)=(l); (i)<(r); ++(i))
#define rep(i,n) rer(i,0,n)
#define gnr(i,l,r) for(int (i)=(r)-1; (i)>=(l); --(i))
#define pri(a) cout<<(a)<<'\n'
#define pri2(a,n) {rep(i,n-1)cout<<a[i]<<' '; if(n)cout<<a[n-1]<<'\n';}
#define prip(p) cout<<(p).fi<<' '<<(p).se<<'\n'
template<class T> inline bool cmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool cmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int n,m,_,x,y,q;
string s,sb;
bool ok;
char cf,cb;

int main(){
  cin.tie(nullptr); ios::sync_with_stdio(0);
  //cout<<fixed<<setprecision(20);
  
  cin>>n; x=100000;
  rep(i,n){
    x+=x/20;
    x=x-((x%1000)?(x%1000):1000)+1000;
  }
  pri(x);
}

C++: #include <stdio.h>

int main() {
    int weeks = 0;
    double money = 100.0d;
    scanf("%d", &weeks);

    for (int i = 0; i < weeks; ++i) {
        money *= 1.05d;
        int temp = (int) money;
        if (temp < money) {
            temp++;
        }
        money = temp;
    }

    int result = (int) money;
    result *= 1000;
    printf("%d\n", result);

    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/=1000;
      money*=1000;
      money+=1000;
    }
  }
  cout<<money<<endl;
}

C++: #include <iostream>

using namespace std;

int main(){
	int now_money = 100000;
	int N;
	cin >> N;
	for(int i = 0; i < N; i++){
		now_money += now_money * 5 / 100;
		if(now_money % 1000 != 0){
			now_money -= now_money % 1000;
			now_money += 1000;
		}
	}
	cout << now_money << endl;
	return 0;
}

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

int main(){
	int n;
	int 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 <iostream>
using namespace std;

// http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=0007&lang=jp

int main() {
	int n;
	cin >> n;
	int ans = 100000;
	for (int i = 0; i < n; i++) {
		ans += ans * 0.05;
	}
	int trunc = (ans / 10000) * 10000;
	cout << (trunc == ans ? ans : trunc + 10000) << 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 * 0.05;
		if(debt % 1000 != 0)
		{
			debt -= debt % 1000;
			debt += 1000;
		}
	}
	cout << debt << endl; 

	return 0;
}

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

int main(){
	int shakkinn=100000;
	int n;
	int i;

	scanf("%d", &n);

	for (i = 0; i < n; i++) {
		shakkinn *= 1.05;
		while (shakkinn % 1000 != 0) {
			shakkinn++;

	}
}
	printf("%d", shakkinn);
}

C++: #include <stdio.h>

int main(void)
{
	int a = 100000;
	int b = 0;
	int c = 0;
	int i = 0;
	int n = 0;
	
	scanf("%d",&n);
	
	
	for(i = 0;i < n;i++){
		b = a * 0.05;				//bは5250になる 5550
		c = b % 1000;				//cは250になる 550

		if(c > 0){
			b = (b - c + 1000);		//bは6000になる 
		}
		a += b;					//aはになる
	}
	printf("%d\n",a);	
	
	return 0;
}

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

int main(){
	double money = 100000;
	string str;
	int n;
	
	while(1){
		getline( cin, str );
		if( str.size()==0 )	break;
		sscanf(str.c_str(), "%d", &n);
		for( int i=0; i<n; i++ ){
			money = (double)money * 1.05;
			int up = money / 1000;
			if( (int)(money - up) > 0 ){
				money = (up+1)*1000;
			}else{
				money = up * 1000;
			}
		}
		int m = (int)money;
		cout << m << endl;
	}
	
	return 0;
}

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

typedef long long int LLI;

int n;
LLI debt = 100000;

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

C++: #include <iostream>

int main(){
	int n,debt=100000;
	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>

int main() {
	int nWeeksLater;
	std::cin >> nWeeksLater;

	const int first = 100000;
	int loan;

	for (int i = 0; i < nWeeksLater; i++)
		loan = first + first * 0.05 * nWeeksLater;

	int a = loan / 10000;
	loan = loan % 10000 >= 5000 ? (a + 1) * 10000 : a * 10000;

	std::cout << loan << std::endl;
	system("pause");
}

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

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

int main(void)
{
  int debt = 100000;

  int n;
  scanf("%d", &n);

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

  printf("%d", debt);

  return 0;
}