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(ans)
}

func calc(n int) float64{
	tmp := 100000.0
	for i:=0; i<n; i++{
		tmp*=1.05
		// tmp = Ceil(tmp, -4) なぜかうまくいかない
		tmp = Ceil(tmp, -3)
		fmt.Printf("now tmp: %d\n", int(tmp))
	}
	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>
#include <stdio.h>
int main(){

	int n,i,kane=100000,a,b;

	std::cin>>n;

	for(i=0;i<n;i++){
		kane=kane*1.05;
		if(kane%1000!=0){
			a=kane%1000;
			b=1000-a;
			kane=kane+b;
			}
		}
	
	std::cout<<kane;

		return 0;
		}

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

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

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

using namespace std;

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

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

C++: #include <iostream>

int main(){
        int n;
        std::cin >> n;
        double result=100;
        for(int i=n;i;i--){
                result*=1.05;
                result=(int)(result+0.9);
        }

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

        return 0;
}

C++: #include <iostream>
#include <string>
#include <cstdlib>
#include <cctype>
#include <math.h>

static bool input(int& n)
{
    if (0x00 == &n) {
        std::cerr << "n is null" << std::endl;
        return false;
    }

    std::string tmp("");
    char c = 0;

    std::cin >> c;
    if (std::isdigit(static_cast<int>(c))) {
        tmp = c;
    	n = std::atoi(tmp.c_str());
    }

    return true;
}

static int calcBalanceOfDebt(int n)
{
    double balance = 100000;

    for (int i = 1; i <= n; i++) {
        balance *= 1.05;
        balance = ceil(balance / 1000) * 1000;
    }

    return static_cast<int>(balance);
}

int main()
{
    int num = 0;

    input(num);
    std::cout << calcBalanceOfDebt(num) << std::endl;

    return 0;
}

C++: #include<iostream>
#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;
    ans=int(ans);
    cout << ans << endl;
    return 0;
}

C++: a=100000
gets.to_i.times{a=a*105/100;a=(a/1000+1)*1000 if a%1000!=0;}
puts a

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

int main()
{
	int n;
	double debt = 10;
	double risi = 0.05;

	cin >> n;
	for(int i = 0;i < n;i++)
		debt += debt * risi;
	debt = ceil(debt);
	debt = debt * 10000;
	cout << debt << endl;

	return 0;
}

C++: #include <stdio.h>

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

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

int main()
{
	int n;
	float b=100000;

	cin>>n;

	for(int i=0;i<n;i++){
		b*=1.05;
		b=(int)((b+999)*0.001);
		b*=1000;
	}
	cout<<(int)b<<endl;
}

C++: #include<cstdio>

int main(){
	int n;
	float k=100000;
	scanf("%d",&n);
	for(;n>=0;n--){
		k*=1.05;
		if(int(k)%1000){
			k+=1000;
		}
		k=float(int(k)-int(k)%1000);
	}
	printf("%d",k);
	return 0;
}

C++: #include <algorithm>
#include <sstream>
#include <iostream>
#include <list>
#include <map>
#include <math.h>
#include <stack>
#include <stdio.h>
#include <string>
#include <queue>
#include <vector>
using namespace std;

int main()
{
	int x = 100000, y, z;
	int n;
	cin >> n;

	for (int i = 0; i < n; i++) {
		x *= 1.05;
		y = x / 1000;
		z = x % 1000 > 0 && x % 1000 < 1000 ? 1000 : 0;
		x = y * 1000 + z;
	}

	cout << x << endl;
}

C++: #include <iostream>

using namespace std;

static const int ROUND = 1000;

int weeks;
double loan = 100000;
int rishi = loan * 0.05;
int temp;

int main(){
  scanf("%d", &weeks);
  while (weeks != 0){
      loan = loan *1.05;
      loan = (int(loan/ROUND) +1) * ROUND;
      weeks--;
  }
 cout << loan << endl;
 return 0;   
}

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

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

	return 0;
}

C++: #include <iostream>
#include<math.h>
#include<iomanip>
#include<vector>
#include<algorithm>
#include<functional>
using namespace std;

int main()
{
    int  a=0,b=0,i=0;
    b=100000;
    cin >> a;
    for(i=0;i<a;i++){
        b=b*1.05;
        b=((b-1)/1000);
        b=b*1000+1000;

    }

    cout << b << endl;



    //cout << endl;

return 0;

}

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

C++: #include <iostream>

int main(){
        int a;
        std::cin >> a;
        double result=100;
        for(int i=a;i;i--){
                result*=1.05;
                result=(int)(result+0.9);
        }

        result*=1000;
        std::cout << result;

        return 0;
}

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

int main() {
  double debt;
  int n;
  debt = 100000;
  cin >> n;
  for(int i=0;i < n;i++) {
    debt *= 1.05;
    debt /=1000;
    debt += 0.999;
    debt = floor(debt);
    debt *= 1000;
  }
  cout << debt << endl;
}

C++: #include<iostream>
#include<string>
#include<cmath>
#include<cstdio>
#include<vector>
#include<stack>
#include<queue>
#include<algorithm>
#include<complex>
using namespace std ;
typedef vector<int> vi ;
typedef vector<vi> vvi ;
typedef vector<string> vs ;
typedef pair<int, int> pii; 
typedef long long ll ;

#define loop(i,a,b) for(int i = a ; i < b ; i ++)
#define rep(i,a) loop(i,0,a)
#define all(a) (a).begin(),(a).end()

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

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

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

int main()
{
        int week;
        long long int debt = 100000;

        cin >> week;
        for(int i=0;i<week;i++){
                debt = debt + debt*0.05;
                if((debt%1000)!=0){
                        debt = (debt/1000 +1)*1000;
                }
        }

        cout << debt << "\n";

        return 0;
}

C++: #include<iostream>
using namespace std;
int main(void)
{
    int n,A=100000,b,a1,b1,A1=100000;
    cin>>n;
    for(int i=0;i<n;i++){
        b1=A*0.05/1000;
        a1=b1*1000+1000;
        A1+=a1;
    }        cout<<A1<<"\n";
}