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<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);
        cout << b << endl;
        b=b*1000+1000;

    }

    cout << b << endl;



    //cout << endl;

return 0;

}

C++: #include<bits/stdc++.h>
using namespace std;
#define FOR(i,a,b) for (int i=(a);i<(b);i++)
#define RFOR(i,a,b) for (int i=(b)-1;i>=(a);i--)
#define REP(i,n) for (int i=0;i<(n);i++)
#define RREP(i,n) for (int i=(n)-1;i>=0;i--)
typedef long long LL;
int main(){
	LL n;
	cin>>n;
	LL ans=100000;
	REP(i,n){
	    ans*=1.05;
	    if(ans%1000!=0){
	       ans/=1000;
	       ans++;
	       ans*=1000;
	    }
	}
        cout<<ans<<endl;
	return(0);
}

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

int main()
{
	double d = 100000.0;
	int n;
	cin >> n;
	for(int i=0; i<n; i++){
		d *= 1.05;
		d /= 1000.0;
		d = ceil(d);
		d *= 1000;
	}
	cout << (int)d << '\n';
}

C++: #include<iostream>

int main()
{
	int debt = 100000, n;
	std::cin >> n;
	for (int i = 0; i < n; ++i)
	{
		debt *= 1.05;
		if (debt % 1000)
			debt = debt - debt % 1000 + 1000;
	}

	std::cout << debt << std::endl;

	return 0;
}

C++: #include<cstdio>

int main() {
	int n;
	double debt=100000;
	scanf("%d", &n);
	for (int i = 0; i < n; i++) {
		debt = debt + debt*0.05;
		debt = debt - (int)debt % 1000;
		debt += 1000;
	}
	printf("%d\n", (int)debt);

	return 0;
}

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

int main() {
	int week;
	cin >> week;
	int debt = 100000;
	while (week--)
	{
		int rem = debt % 20000;
		debt = ((int)(debt * 1.05) / 1000) * 1000;
		if (rem > 0) { debt += 1000; }
	}
	cout << debt << endl;

	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 += 100000 * 0.05;
  if(ans % 1000 > 0) ans = ans - (ans % 1000) + 1000;
 }
 printf("%d\n",ans);
 return 0;
}

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 *= 1.05;
    if (ans % 1000 != 0) {
      int tmp = ans / 1000;
      ans = (tmp + 1) * 1000;
    }
  }
  cout << ans << endl;
}

C++: #include <stdio.h>

int main(void){
int n;
scanf("%d",&n);
int coin=100000;
for(int m=0;m<n;m++){
coin*=1.05;
coin=(coin/1000)*1000+(coin%1000)>0? 1000:0;
}
printf("%d\n",coin);
return 0;
}

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

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

C++: #include <iostream>

using namespace std;

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

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

#define INTEREST	5

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

	cin >> n;
	for( int i = 0; i < n; ++i ) {
		debt = debt * ( 1 + INTEREST * 0.01 );
		if( debt % 1000 != 0 ) {
			debt = debt - debt % 1000 + 1000;
		}
	}
		
	cout << debt << endl;
}

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<10*pow(1.05,n)<<std::endl;
    return 0;
}

C++: #include <iostream>
using namespace std;
int main(){
  int n;
  cin >> n;
  long long m = 100000;
  while(n--){
    m *= 1.05;
    m = ((long long)m/1000+(m%1000?1:0))*1000;
  }
  cout << m << endl;
  return 0;
}

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

using namespace std;

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

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

int main(void){
    int n;
    std::cin>>n;
    std::cout<<round(100000*pow(1.05,n)+999)<<std::endl;
    return 0;
}

C++: #include<iostream>
using namespace std;
int main(){
	long long int N,x=100000,y;
	cin >> N;
	for(int i=0;i<N;i++){
		x = x * 105 / 100;
		y = x/1000;
		if((x%1000)!=0)	x = (y+1)*1000;
	}
	cout << x << endl;
}

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

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

	return 0;
}

C++: import java.util.Scanner;

public class Main 
{
	public static void main(String arg[])
	{
		Scanner scan = new Scanner(System.in);
		int n = scan.nextInt();
		int de = 100000;

		for(int i=0; i<n; i++)
		{
			de = de / 100;
			de = de * 105;
			if(de%1000 != 0)
				de += 1000;
			de = de/1000;
			de = de*1000; 
		}
		System.out.println(de);
	}

}

C++: #include <iostream>

int main(void) {
    int n;
    std::cin >> n;
    int cost = 100000;
    double cost_temp;

    for (int i = 0; i < 5; i++) {
        cost_temp = cost * 1.05;
        cost = cost_temp;
        if (cost % 1000 != 0) {
            cost += 1000;
        }
        cost = (cost / 1000) * 1000;
    }
    std::cout << cost << std::endl;

    return 0;
}

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

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

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

int main()
{
	double debt = 100000.0;
	int N;

	cin >> N;

	for (; N > 0; N--){
		debt *= 1.05;

		debt /= 1000;
		debt = ceill(debt);
		debt *= 1000;
	}

	cout << debt << endl;

	return 0;
}

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

using namespace std;

int main() {
	
	double weeks=0;
	double debit=100.0;
	
	
	cin >> weeks;
	
	for(int i=0; i<weeks;i++){
		debit=debit+debit*0.05;
		debit=ceil(debit);
	}
	
	int out =debit*1000;
	
	cout <<out<<endl;
	
	
	return 0;
}

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

int main()
{
    int n, debt = 100;
    cin >> n;
    while(n-- > 0) debt = ceil(debt * 1.05);
    cout << debt * 1000 << endl;
}

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

int main() {
	int n;
	double x=100000.0;
	
	cin>>n;

	for(int i=0;i<n;i++)
		x+=x*0.05;

	cout<<(int)(x/10000+0.9)*10000;
	return 0;
}

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

int main(){
  int n;
  cin >> n;
  int 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++: //0007 Debt Hell
// éÉZñÅ¢éFlÍàÉ¢ÁÄÅàÆÒ©ç10~ØèÄµÜÁ½
//»ÌÆÒÍT²ÆÉqª5%t«A»ÌÛ1000¢ÍØèã°éÆ¢¤
//nTÔãÌÔÏzðßæ@È¨An<=100Æ·é

#include<iostream>
using namespace std;

int main(void)
{
	int debt;
	int n;
	int i;

	cin >> n;
	debt = 100000;	//ÅÍ10~
	for(i = 0; i < n; i++)
	{
		//T²ÆÉ1.05{
		debt += debt/20;
		//1000~¢Ì[ª é©
		int fraction = debt%1000;
		if(fraction)
			debt = debt-fraction + 1000;
	}
	cout << debt << endl;

	return 0;
}