Go: package main

import (
        "fmt"
        "math"
)

var interests [101]float64

func main() {
        var m int
        fmt.Scanf("%d", &m)
        fmt.Printf("%d\n", int(math.Ceil(interest(m)*10))*10000)
}

func interest(m int) (i float64){
        if interests[m] > 0 {
                return interests[m]
        }

        if m == 0 {
                interests[0] = 1.0
                return interests[0]
        }

        if m == 1 {
                interests[1] = 1.05
                return interests[1]
        }
        interests[m] = interest(m/2) * interest(m/2) * interest(m%2)
        return interests[m]
}

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

int main()
{
	int i, n;
	int money=100000;
	
	cin >> n;
	
	for(i=1; i<=n; i++){
		money *= 1.05;
		money = (money+999) / 1000 * 1000;
	}
	cout << money;
		
	return 0;
}

C++: #define scanf_s scanf
#include <stdio.h>
#include <string>
#include <iostream>
using namespace std;
#define MAX 20
int main(void)
{
	int n, sum = 100000;
	scanf_s("%d", &n);
	for (int i = 0; i < n; ++i) {
		sum += sum * 0.05;
		if (sum % 1000 != 0) {
			sum += 1000 - sum % 1000;
		}
	}
	printf("%d\n", sum);
}

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

C++: #include <iostream>

using namespace std;

void solve()
{
	int N;
	cin >> N;
	double sum = 100000;
	for(int i = 0; i < N; ++i)
	{
		sum *= 1.05;
		double temp = (int)sum % 1000;
		if(temp)
		{
			sum += 1000 - temp; 
		}
	}
	cout << sum << endl;
}

int main()
{
	solve();
	return(0);
}

C++: #include <iostream>
#include <algorithm>
#include <vector>
#include <string>
using namespace std;
typedef long long int ll;

int main(){
    int n; cin >> n;
    ll ans=100000;
    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()
{
    int n = 0;                                          //n習慣
    int debt = 100000;                                  //10万借金

    cin >> n;                                           //入力

    for( int i = 0; i < n; i++ )                        //n回繰り返す
    {
        debt = debt * 1.05;                             //5%増える
        if( debt % 1000 != 0 )                     //1~999は切り上がる
            debt = ( debt / 1000 + 1 ) * 1000;
    }

    cout << debt;

    return 0;
}

C++: #include <iostream>
using namespace std;
int main(void){
     int loan = 100000;
    int week;
    cin >> week;
    for(int i=0;i<week;i++) {
        loan *= 1.05;
    }
    double tmp = (double)loan / 10000;
    tmp += 0.5;
    loan = (int)tmp;
    loan *= 10000;
    cout << loan;
}

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

int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n;
    cin>>n;
    int d=100000;
    for(int i=0; i<n; i++) {
        d+=d/20;
        d+=999;
        d-=d%1000;
    }
    cout<<d<<'\n';
    return 0;
}

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

int main(){
	double n,i,tmp;
	double ans=100000;
	cin>>n;
	while(n--){
		ans *= 1.05;
		ans = ceil(ans/1000.0)*1000.0;

	}
	cout<<ans<<endl;
	return 0;
}

C++: #include <iostream>
int main(void){
  int n,ans=100000;
  std::cin>>n;
  for(int i=0;i<n;i++)
    ans*=1.05;
  int t=ans%1000;
  ans=ans-t+1000;
  std::cout<<ans<<std::endl;
  return 0;
}

C++: #include <stdio.h>

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

	scanf("%d", &n);
	for(int i=0 ; i<n ; i++){
		money *= 1.05;
		if(money%1000 != 0)money += 1000 - (money%1000);
	}
	printf("%d", money);

	return 0;
}

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

using namespace std;

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

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 <string>

using namespace std;

int main() {
  int n, x = 100000;
  cin >> n;
  for (int i = 0; i < n; i++) {
    x += x / 20;
    x = (x + 999) / 1000 * 1000;
  }
  cout << x << endl;
  return 0;
}

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

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

C++: #include <stdio.h>
#include <stdlib.h>
#include <math.h>
#pragma warning(disable:4996)

int main()
{

	int Debt = 100000;
	int Weeks = 0;
	scanf("%d", &Weeks);

	for (int nCnt = 0; nCnt < Weeks; nCnt++)
	{
		Debt += Debt * 0.05f;
		if (Debt % 1000 > 0)
			Debt += 1000 - (Debt % 1000);
	}

	printf("%d", Debt);

	return 0;
}

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

int n,i;
double debt=100;
int main(){
	scanf("%d",&n);
	for(i=0;i<n;i++){
	debt*=1.05;
	debt=ceil(debt);
	}
	printf("%.0f",debt*1000);
}

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

using namespace std;


int main()
{
	int i,n;
	cin >> n;
	
	int gaku = 100;

	for( i = 0; i < n; i++ ) {
		gaku = ceil(gaku * 1.05);
	}
	
	cout << gaku * 1000;

	return 0;
}

C++: #include <iostream>

int main(int argc, char** argv) {
	int n, balance, i, unit;
	double interest;
	balance = 100000;
	interest = 0.05;
	unit = 1000;
	std::cin >> n;
	for(i = 0; i < n; i++) {
		balance *= (1.00 + interest);
		if (balance % unit) {
		    balance += unit - (balance % unit);
		}
	}
	std::cout << balance << std::endl;
}

C++: #include<iostream>
using namespace std;
int main(){
	int moto=100,syuu;
	cin>>syuu;
	for(int abc=0;abc<syuu;abc++){
		if(moto%20!=0){
			moto=moto*1.05+1;
		}else{
			moto*=1.05;
		}
	}
	cout<<moto*1000<<endl;
	return 0;
}

C++: #include <iostream>

using namespace std;

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

	cout << m << endl;
}

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;
        cout << i+1 << ":::" << ans << "->";
        ans=(int)(ans+0.999);
        cout << ans << "->";
        ans=(double)ans;
        cout << ans << endl;
    }
    ans*=1000;
    printf("%d\n",int(ans));
    return 0;
}

C++: #include<iostream>

using namespace std;
   
void Loan()
{
    int m;
    int sum = 100000;
    int week;
    
    cin>>week;
    
    for(int i=0; i<week; i++)
    {
        sum = sum * 1.05;
        
        m = sum % 1000;
        
        if(m > 0)
        {
            sum = sum - m + 1000; 
        }
        
    }
    
   cout<<sum;
   return;
}
     
int main()
{     
    Loan();
    return 0;
}

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

using namespace std;

int main()
{
	int N; cin >> N;
	const int base = 100000;
	int ans = base;
	
	for(int i = 0; i < N; i++)
	{
		ans += (ans * 0.05);
		
		int diff = (ans % 1000);
		if( diff != 0 )ans += (1000 - diff);
	}
	
	cout << ans << endl;
	return 0;
}

C++: #include <iostream>

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

    std::cin >> n;

    for (int i = 0; i < n; i++) {
        debt = 1000 * int(debt * 1.05 * 0.001 + 0.9);
    }

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